Skip to content

Commit

Permalink
Snapshots: store DataFrameDTO instead of MutableDataFrame in snapshot…
Browse files Browse the repository at this point in the history
… data (grafana#19247)
  • Loading branch information
dprokop authored Sep 20, 2019
1 parent da3587a commit be8097f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/app/features/dashboard/dashgrid/PanelChrome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import templateSrv from 'app/features/templating/template_srv';
import config from 'app/core/config';
// Types
import { DashboardModel, PanelModel } from '../state';
import { LoadingState, ScopedVars, AbsoluteTimeRange, toUtc } from '@grafana/data';
import { LoadingState, ScopedVars, AbsoluteTimeRange, toUtc, toDataFrameDTO } from '@grafana/data';

const DEFAULT_PLUGIN_ERROR = 'Error in plugin';

Expand Down Expand Up @@ -129,7 +129,7 @@ export class PanelChrome extends PureComponent<Props, State> {
if (data.state === LoadingState.Done) {
// If we are doing a snapshot save data in panel model
if (this.props.dashboard.snapshot) {
this.props.panel.snapshotData = data.series;
this.props.panel.snapshotData = data.series.map(frame => toDataFrameDTO(frame));
}
if (isFirstLoad) {
isFirstLoad = false;
Expand Down

0 comments on commit be8097f

Please sign in to comment.