diff --git a/public/app/features/dashboard/state/DashboardModel.ts b/public/app/features/dashboard/state/DashboardModel.ts index ceb347f7021..f38b3117b92 100644 --- a/public/app/features/dashboard/state/DashboardModel.ts +++ b/public/app/features/dashboard/state/DashboardModel.ts @@ -315,14 +315,18 @@ export class DashboardModel { panelInitialized(panel: PanelModel) { panel.initialized(); - // refresh new panels unless we are in fullscreen / edit mode - if (!this.otherPanelInFullscreen(panel)) { - panel.refresh(); - } - - // refresh if panel is in edit mode and there is no last result - if (this.panelInEdit === panel && !this.panelInEdit.getQueryRunner().getLastResult()) { - panel.refresh(); + if (this.panelInEdit === panel) { + if (this.panelInEdit.getQueryRunner().getLastResult()) { + return; + } else { + // refresh if panel is in edit mode and there is no last result + panel.refresh(); + } + } else { + // refresh new panels unless we are in fullscreen / edit mode + if (!this.otherPanelInFullscreen(panel)) { + panel.refresh(); + } } }