Dashboard: Run requests with correct app type (#60010)

Dashboard: Run quries with correct core app
This commit is contained in:
Ivana Huckova
2022-12-08 11:52:28 +01:00
committed by GitHub
parent 4b56493789
commit e2077e9659
2 changed files with 5 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ import {
urlUtil,
PanelModel as IPanelModel,
DataSourceRef,
CoreApp,
} from '@grafana/data';
import { getTemplateSrv, RefreshEvent } from '@grafana/runtime';
import config from 'app/core/config';
@@ -366,6 +367,7 @@ export class PanelModel implements DataConfigSource, IPanelModel {
scopedVars: this.scopedVars,
cacheTimeout: this.cacheTimeout,
transformations: this.transformations,
app: this.isEditing ? CoreApp.PanelEditor : this.isViewing ? CoreApp.PanelViewer : CoreApp.Dashboard,
});
}