|
|
@@ -163,14 +163,20 @@ export class DashboardPage extends PureComponent<Props, State> {
|
|
|
fullscreenPanel: null,
|
|
|
scrollTop: this.state.rememberScrollTop,
|
|
|
},
|
|
|
- () => {
|
|
|
- dashboard.render();
|
|
|
- }
|
|
|
+ this.triggerPanelsRendering.bind(this)
|
|
|
);
|
|
|
|
|
|
this.setPanelFullscreenClass(false);
|
|
|
}
|
|
|
|
|
|
+ triggerPanelsRendering() {
|
|
|
+ try {
|
|
|
+ this.props.dashboard.render();
|
|
|
+ } catch (err) {
|
|
|
+ this.props.notifyApp(createErrorNotification(`Panel rendering error`, err));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
handleFullscreenPanelNotFound(urlPanelId: string) {
|
|
|
// Panel not found
|
|
|
this.props.notifyApp(createErrorNotification(`Panel with id ${urlPanelId} not found`));
|