fix: fixed setState warning

This commit is contained in:
paul
2025-03-29 21:03:02 +05:30
parent 8e1f042350
commit 64631caaaa

View File

@@ -215,13 +215,13 @@ class Widget extends React.Component {
this.stateUpdateCallback = null // allowing other components such as toolbar to subscribe to changes in this widget
this.resizeObserver = null
this.setLayout({layout: Layouts.PLACE, gap: 10})
}
componentDidMount() {
this.setLayout({layout: Layouts.PLACE, gap: 10})
// if (this.state.attrs.layout){
// this.setLayout(this.state.attrs.layout.value)