mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
adjusting types to match
This commit is contained in:
parent
ae0b9692be
commit
4b47e857f2
@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user