Init node item (#45218) (#45323)

(cherry picked from commit 574f609550)

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
This commit is contained in:
Grot (@grafanabot)
2022-02-12 11:21:59 +02:00
committed by GitHub
co-authored by Alex Khomenko
parent 099e6ee22d
commit 382600c9eb
@@ -114,7 +114,7 @@ export function buildNavModel(dataSource: DataSourceSettings, plugin: GenericDat
}
export function getDataSourceNav(main: NavModelItem, pageName: string): NavModel {
let node: NavModelItem;
let node: NavModelItem = { text: '' };
// find active page
for (const child of main.children!) {