Commit c6d3ffce by David Committed by GitHub

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
parent fb21492e
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment