diff --git a/public/app/core/reducers/navBarTree.ts b/public/app/core/reducers/navBarTree.ts index 6223422bad1..83656addacb 100644 --- a/public/app/core/reducers/navBarTree.ts +++ b/public/app/core/reducers/navBarTree.ts @@ -2,7 +2,7 @@ import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { NavModelItem } from '@grafana/data'; import config from 'app/core/config'; -const defaultPins = ['home', 'dashboards', 'explore', 'alerting'].join(','); +const defaultPins = (config.bootData.navTree as NavModelItem[]).map((n) => n.id).join(','); const storedPins = (window.localStorage.getItem('pinnedNavItems') ?? defaultPins).split(','); export const initialState: NavModelItem[] = ((config.bootData?.navTree ?? []) as NavModelItem[]).map(