Browse Source

Fix iteration over deleted bindings during page change (#421)

main
Braden 3 years ago
parent
commit
17c34b2d7d
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      packages/tldraw/src/state/TldrawApp.ts

+ 1
- 1
packages/tldraw/src/state/TldrawApp.ts View File

522
       }
522
       }
523
     })
523
     })
524
 
524
 
525
-    Object.keys(this.prevShapes)
525
+    Object.keys(this.prevBindings)
526
       .filter((id) => !visited.has(id))
526
       .filter((id) => !visited.has(id))
527
       .forEach((id) => {
527
       .forEach((id) => {
528
         changedBindings[id] = undefined
528
         changedBindings[id] = undefined

Loading…
Cancel
Save