From 17c34b2d7dba1ceb6df965e95b4f67481672cfe6 Mon Sep 17 00:00:00 2001 From: Braden Date: Wed, 1 Dec 2021 07:48:37 -0600 Subject: [PATCH] Fix iteration over deleted bindings during page change (#421) --- packages/tldraw/src/state/TldrawApp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tldraw/src/state/TldrawApp.ts b/packages/tldraw/src/state/TldrawApp.ts index 608e29337..19b812026 100644 --- a/packages/tldraw/src/state/TldrawApp.ts +++ b/packages/tldraw/src/state/TldrawApp.ts @@ -522,7 +522,7 @@ export class TldrawApp extends StateManager { } }) - Object.keys(this.prevShapes) + Object.keys(this.prevBindings) .filter((id) => !visited.has(id)) .forEach((id) => { changedBindings[id] = undefined