From 4b47e857f21a1bbc87d0219c89cc44366320cce6 Mon Sep 17 00:00:00 2001 From: Peter Holmberg Date: Wed, 30 Jan 2019 13:43:17 +0100 Subject: [PATCH] adjusting types to match --- public/app/features/dashboard/dashgrid/PanelChrome.tsx | 2 +- public/app/features/dashboard/panel_model.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;