mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
NewPanelEditor: Wait a bit before resending query result on panel editor exit (#22421)
This commit is contained in:
parent
bb6a6d795f
commit
712253fbee
@ -45,7 +45,12 @@ export function panelEditorCleanUp(): ThunkResult<void> {
|
||||
modifiedSaveModel.id = sourcePanel.id;
|
||||
|
||||
sourcePanel.restoreModel(modifiedSaveModel);
|
||||
|
||||
// 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();
|
||||
|
Loading…
Reference in New Issue
Block a user