diff --git a/public/app/core/components/SharedPreferences/SharedPreferences.tsx b/public/app/core/components/SharedPreferences/SharedPreferences.tsx index 82450a2320e..adaa75a640b 100644 --- a/public/app/core/components/SharedPreferences/SharedPreferences.tsx +++ b/public/app/core/components/SharedPreferences/SharedPreferences.tsx @@ -97,6 +97,13 @@ export class SharedPreferences extends PureComponent { this.setState({ homeDashboardId: dashboardId }); }; + getFullDashName = (dashboard: DashboardSearchHit) => { + if (typeof dashboard.folderTitle === 'undefined' || dashboard.folderTitle === '') { + return dashboard.title; + } + return dashboard.folderTitle + ' / ' + dashboard.title; + }; + render() { const { theme, timezone, homeDashboardId, dashboards } = this.state; @@ -123,7 +130,7 @@ export class SharedPreferences extends PureComponent {