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
saml-idp-metadata-url-docs
David 6 years ago committed by GitHub
parent fb21492eae
commit c6d3ffce91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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

Loading…
Cancel
Save