remove unused code
This commit is contained in:
parent
26865a0a57
commit
caba25e7f5
1 changed files with 0 additions and 6 deletions
|
@ -1403,10 +1403,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
) => {
|
||||
if (document) {
|
||||
this.loadDocument(document)
|
||||
this.zoomToFit()
|
||||
this.persist({})
|
||||
} else {
|
||||
this.setIsLoading(true)
|
||||
const { currentPageId } = this
|
||||
const state = {
|
||||
id: 'create_page',
|
||||
|
@ -1437,10 +1434,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
},
|
||||
},
|
||||
}
|
||||
this.setIsLoading(false)
|
||||
this.setState(state)
|
||||
this.zoomToFit()
|
||||
this.persist({})
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue