From c6d3ffce91cba20dd8000e2750d5d2773e728d16 Mon Sep 17 00:00:00 2001 From: David Date: Thu, 18 Jul 2019 16:09:04 +0200 Subject: [PATCH] Panel: Show error in edit mode (#18175) - the error was set, but has not been shown - this change will force a digest before the query promises return with their error handling --- public/app/features/panel/metrics_panel_ctrl.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/panel/metrics_panel_ctrl.ts b/public/app/features/panel/metrics_panel_ctrl.ts index ba8d6af3bff..06f9fc96b90 100644 --- a/public/app/features/panel/metrics_panel_ctrl.ts +++ b/public/app/features/panel/metrics_panel_ctrl.ts @@ -110,8 +110,10 @@ class MetricsPanelCtrl extends PanelCtrl { } } - this.events.emit('data-error', err); console.log('Panel data error:', err); + return this.$timeout(() => { + this.events.emit('data-error', err); + }); } // Updates the response with information from the stream