From 333932812df5b22d46a9c9a2c879e8ee33af09d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 18 Jun 2021 08:54:11 +0200 Subject: [PATCH] Dashboard: Fixes blank / empty panels after duplicate and add library panel (#35906) --- public/app/features/dashboard/dashgrid/DashboardGrid.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx index 365caab319d..fbc56b92ffb 100644 --- a/public/app/features/dashboard/dashgrid/DashboardGrid.tsx +++ b/public/app/features/dashboard/dashgrid/DashboardGrid.tsx @@ -162,11 +162,7 @@ export class DashboardGrid extends PureComponent { } this.props.dashboard.sortPanelsByGridPos(); - - // onLayoutChange is called onMount this marks layout as initialized and we are ready to render panels - if (!this.state.isLayoutInitialized) { - this.setState({ isLayoutInitialized: true }); - } + this.forceUpdate(); }; triggerForceUpdate = () => {