Navigation: refactor RemoveEmptySection... logic into main navtree code (#66878)
refactor RemoveEmptySection logic into main navtree code
This commit is contained in:
+1
-2
@@ -166,8 +166,7 @@ func (hs *HTTPServer) setIndexViewData(c *contextmodel.ReqContext) (*dtos.IndexV
|
||||
|
||||
hs.HooksService.RunIndexDataHooks(&data, c)
|
||||
|
||||
// This will remove empty cfg or admin sections and move sections around
|
||||
data.NavTree.RemoveEmptySectionsAndApplyNewInformationArchitecture()
|
||||
data.NavTree.ApplyAdminIA()
|
||||
data.NavTree.Sort()
|
||||
|
||||
return &data, nil
|
||||
|
||||
Reference in New Issue
Block a user