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
This commit is contained in:
David
2019-07-18 16:09:04 +02:00
committed by GitHub
parent fb21492eae
commit c6d3ffce91

View File

@@ -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