Update TldrawApp.ts (#766)

This commit is contained in:
Steve Ruiz 2022-06-28 17:55:50 +01:00 committed by GitHub
parent 639b6ced50
commit b9a4a6c36e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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