adjusting types to match

This commit is contained in:
Peter Holmberg 2019-01-30 13:43:17 +01:00
parent ae0b9692be
commit 4b47e857f2
2 changed files with 3 additions and 3 deletions

View File

@ -86,7 +86,7 @@ export class PanelChrome extends PureComponent<Props, State> {
onDataResponse = (dataQueryResponse: DataQueryResponse) => {
if (this.props.dashboard.isSnapshot()) {
this.props.panel.snapshotData = dataQueryResponse;
this.props.panel.snapshotData = dataQueryResponse.data;
}
};

View File

@ -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;