mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Search: Fix local storage key (#40127)
* Default to 'General' if no folder title is present * Add bottom padding
This commit is contained in:
parent
95d9722afa
commit
5c7e874008
@ -96,6 +96,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme2) => {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
padding-bottom: ${theme.spacing(3)};
|
||||
`,
|
||||
};
|
||||
});
|
||||
|
@ -227,10 +227,7 @@ export const getSectionIcon = (section: DashboardSection): IconName => {
|
||||
* Get storage key for a dashboard folder by its title
|
||||
* @param title
|
||||
*/
|
||||
export const getSectionStorageKey = (title: string) => {
|
||||
if (!title) {
|
||||
return '';
|
||||
}
|
||||
export const getSectionStorageKey = (title = 'General') => {
|
||||
return `${SECTION_STORAGE_KEY}.${title.toLowerCase()}`;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user