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

(cherry picked from commit 333932812d)

Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
This commit is contained in:
Grot (@grafanabot)
2021-06-18 09:12:39 +02:00
committed by GitHub
co-authored by Torkel Ödegaard
parent a95eca61ff
commit 3805f72b6a
@@ -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 = () => {