Update TldrawApp.ts (#766)
This commit is contained in:
parent
639b6ced50
commit
b9a4a6c36e
1 changed files with 5 additions and 4 deletions
|
@ -548,10 +548,11 @@ export class TldrawApp extends StateManager<TDSnapshot> {
|
|||
patch?.document?.assets
|
||||
) {
|
||||
if (
|
||||
this.session &&
|
||||
this.session.type !== SessionType.Brush &&
|
||||
this.session.type !== SessionType.Erase &&
|
||||
this.session.type !== SessionType.Draw
|
||||
patch?.document?.assets ||
|
||||
(this.session &&
|
||||
this.session.type !== SessionType.Brush &&
|
||||
this.session.type !== SessionType.Erase &&
|
||||
this.session.type !== SessionType.Draw)
|
||||
) {
|
||||
this.broadcastPatch(patch, false)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue