mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
strictNullChecks: First batch (#18390)
* First batch of strictNullChecks * Remove undefined * Check an alternative solution * Fix strict nullChecks * Low hanging strictNullChecks * Fixing strict nulls issues and more * Minor change * fixed unit test * Fix feedback * Update public/vendor/ansicolor/ansicolor.ts Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com> * Update public/vendor/ansicolor/ansicolor.ts Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com> * Update public/vendor/ansicolor/ansicolor.ts Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com> * Fix build errors
This commit is contained in:
committed by
Torkel Ödegaard
parent
0b828cfa44
commit
1db9fff056
@@ -31,8 +31,10 @@ export function createNavModel(title: string, ...tabs: string[]): NavModel {
|
||||
breadcrumbs: [],
|
||||
};
|
||||
|
||||
const children = [];
|
||||
|
||||
for (const tab of tabs) {
|
||||
node.children.push({
|
||||
children.push({
|
||||
id: tab,
|
||||
icon: 'icon',
|
||||
subTitle: 'subTitle',
|
||||
@@ -42,7 +44,9 @@ export function createNavModel(title: string, ...tabs: string[]): NavModel {
|
||||
});
|
||||
}
|
||||
|
||||
node.children[0].active = true;
|
||||
children[0].active = true;
|
||||
|
||||
node.children = children;
|
||||
|
||||
return {
|
||||
node: node,
|
||||
|
||||
Reference in New Issue
Block a user