Dashboard: Fixes blank / empty panels after duplicate and add library panel (#35906)

This commit is contained in:
Torkel Ödegaard
2021-06-18 08:54:11 +02:00
committed by GitHub
parent 1d6e99bc95
commit 333932812d

View File

@@ -162,11 +162,7 @@ export class DashboardGrid extends PureComponent<Props, State> {
}
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 = () => {