diff --git a/public/app/features/dashboard/components/PanelEditor/state/actions.ts b/public/app/features/dashboard/components/PanelEditor/state/actions.ts index 9d4a996749e..a7d85c984d0 100644 --- a/public/app/features/dashboard/components/PanelEditor/state/actions.ts +++ b/public/app/features/dashboard/components/PanelEditor/state/actions.ts @@ -45,7 +45,12 @@ export function panelEditorCleanUp(): ThunkResult { modifiedSaveModel.id = sourcePanel.id; sourcePanel.restoreModel(modifiedSaveModel); - sourcePanel.getQueryRunner().pipeDataToSubject(panel.getQueryRunner().getLastResult()); + + // Resend last query result on source panel query runner + // But do this after the panel edit editor exit process has completed + setTimeout(() => { + sourcePanel.getQueryRunner().pipeDataToSubject(panel.getQueryRunner().getLastResult()); + }); } dashboard.exitPanelEditor();