remove unused code

This commit is contained in:
Judicael 2022-08-18 16:17:18 +03:00
parent 26865a0a57
commit caba25e7f5

View file

@ -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({})
}
}