fix: preserve legacy channel parent names
This commit is contained in:
@@ -61,12 +61,6 @@ func (c *Channel) BusinessDisplayName() string {
|
||||
}
|
||||
|
||||
func (c *Channel) ParentDisplayName() string {
|
||||
if c.Level != nil && *c.Level == 1 {
|
||||
if len(c.BusinessPath) > 0 {
|
||||
return c.BusinessPath[len(c.BusinessPath)-1]
|
||||
}
|
||||
return c.BusinessDisplayName()
|
||||
}
|
||||
return c.ParentName
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user