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

This commit is contained in:
Braden 2021-12-01 07:48:37 -06:00 committed by GitHub
parent 3856d3d5c4
commit 17c34b2d7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -522,7 +522,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
}
})
Object.keys(this.prevShapes)
Object.keys(this.prevBindings)
.filter((id) => !visited.has(id))
.forEach((id) => {
changedBindings[id] = undefined