diff --git a/public/app/features/dashboard/dashgrid/PanelChrome.tsx b/public/app/features/dashboard/dashgrid/PanelChrome.tsx index 853139db803..359965bc9ad 100644 --- a/public/app/features/dashboard/dashgrid/PanelChrome.tsx +++ b/public/app/features/dashboard/dashgrid/PanelChrome.tsx @@ -86,7 +86,7 @@ export class PanelChrome extends PureComponent { onDataResponse = (dataQueryResponse: DataQueryResponse) => { if (this.props.dashboard.isSnapshot()) { - this.props.panel.snapshotData = dataQueryResponse; + this.props.panel.snapshotData = dataQueryResponse.data; } }; diff --git a/public/app/features/dashboard/panel_model.ts b/public/app/features/dashboard/panel_model.ts index 469884517b3..6f85e7a7a3c 100644 --- a/public/app/features/dashboard/panel_model.ts +++ b/public/app/features/dashboard/panel_model.ts @@ -4,7 +4,7 @@ import _ from 'lodash'; // Types import { Emitter } from 'app/core/utils/emitter'; import { PANEL_OPTIONS_KEY_PREFIX } from 'app/core/constants'; -import { DataQuery, DataQueryResponse } from '@grafana/ui/src/types'; +import { DataQuery, TimeSeries } from '@grafana/ui'; export interface GridPos { x: number; @@ -87,7 +87,7 @@ export class PanelModel { datasource: string; thresholds?: any; - snapshotData?: DataQueryResponse; + snapshotData?: TimeSeries[]; timeFrom?: any; timeShift?: any; hideTimeOverride?: any;