fix: fixed setState warning
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user