Refactor: use data rather than series in stream callback(#18126)

This commit is contained in:
Ryan McKinley
2019-08-01 23:16:29 -07:00
committed by GitHub
parent 85da4a169d
commit 5f4b5dfecd
13 changed files with 48 additions and 48 deletions

View File

@@ -11,7 +11,7 @@ import ErrorBoundary from 'app/core/components/ErrorBoundary/ErrorBoundary';
import { getTimeSrv, TimeSrv } from '../services/TimeSrv';
import { applyPanelTimeOverrides, calculateInnerPanelHeight } from 'app/features/dashboard/utils/panel';
import { profiler } from 'app/core/profiler';
import { getProcessedDataFrame } from '../state/PanelQueryState';
import { getProcessedDataFrames } from '../state/PanelQueryState';
import templateSrv from 'app/features/templating/template_srv';
import config from 'app/core/config';
@@ -71,7 +71,7 @@ export class PanelChrome extends PureComponent<Props, State> {
this.setState({
data: {
state: LoadingState.Done,
series: getProcessedDataFrame(panel.snapshotData),
series: getProcessedDataFrames(panel.snapshotData),
},
isFirstLoad: false,
});