diff --git a/public/app/features/dashboard/containers/DashboardPage.tsx b/public/app/features/dashboard/containers/DashboardPage.tsx index 1a970d3edc0..c68e24fc8e6 100644 --- a/public/app/features/dashboard/containers/DashboardPage.tsx +++ b/public/app/features/dashboard/containers/DashboardPage.tsx @@ -163,14 +163,20 @@ export class DashboardPage extends PureComponent { 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`));