From 574f609550022416c4801ecd9cde32ea8658cc7c Mon Sep 17 00:00:00 2001 From: Alex Khomenko Date: Fri, 11 Feb 2022 17:18:33 +0200 Subject: [PATCH] Init node item (#45218) --- public/app/features/datasources/state/navModel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/datasources/state/navModel.ts b/public/app/features/datasources/state/navModel.ts index 8f2dd5250ee..1d7fe4139b5 100644 --- a/public/app/features/datasources/state/navModel.ts +++ b/public/app/features/datasources/state/navModel.ts @@ -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!) {