Compare commits
1 Commits
master
...
aakansha-c
Author | SHA1 | Date | |
---|---|---|---|
|
016b054288 |
@ -1022,7 +1022,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
|
|||||||
// potential issues, this fixes a case where the tab isn't focused during
|
// potential issues, this fixes a case where the tab isn't focused during
|
||||||
// init, which would trigger onChange with empty elements, which would then
|
// init, which would trigger onChange with empty elements, which would then
|
||||||
// override whatever is in localStorage currently.
|
// override whatever is in localStorage currently.
|
||||||
if (!this.state.isLoading) {
|
if (!this.state.isLoading && !prevState.isLoading) {
|
||||||
this.props.onChange?.(
|
this.props.onChange?.(
|
||||||
this.scene.getElementsIncludingDeleted(),
|
this.scene.getElementsIncludingDeleted(),
|
||||||
this.state,
|
this.state,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user