diff --git a/public/app/features/dashboard/services/DashboardLoaderSrv.ts b/public/app/features/dashboard/services/DashboardLoaderSrv.ts index ede6a20a6e6..08e59febaa4 100644 --- a/public/app/features/dashboard/services/DashboardLoaderSrv.ts +++ b/public/app/features/dashboard/services/DashboardLoaderSrv.ts @@ -146,6 +146,14 @@ export class DashboardLoaderSrv extends DashboardLoaderSrvBase { if (type === 'script' && slug) { promise = this.loadScriptedDashboard(slug); + // needed for the old architecture + // in scenes this is handled through loadSnapshot method + } else if (type === 'snapshot' && slug) { + promise = getDashboardSnapshotSrv() + .getSnapshot(slug) + .catch(() => { + return this._dashboardLoadFailed('Snapshot not found', true); + }); } else if (type === 'public' && uid) { promise = backendSrv .getPublicDashboardByUid(uid)