mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 08:05:43 -06:00
Navigation: Set navtree to an empty array instead of null (#58919)
set navtree to an empty array instead of null
This commit is contained in:
parent
14fbd44ac0
commit
4aa5dea96b
@ -140,6 +140,10 @@ func (root *NavTreeRoot) RemoveEmptySectionsAndApplyNewInformationArchitecture(t
|
||||
node.Url = node.Children[0].Url
|
||||
}
|
||||
}
|
||||
|
||||
if len(root.Children) < 1 {
|
||||
root.Children = make([]*NavLink, 0)
|
||||
}
|
||||
}
|
||||
|
||||
func (root *NavTreeRoot) Sort() {
|
||||
|
Loading…
Reference in New Issue
Block a user