mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
NewNavigation: Fix default pinned items (#45769)
This commit is contained in:
parent
59317a22e4
commit
860e94420e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user