Skip to content

Commit

Permalink
set changes map before returning (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs authored Feb 4, 2025
1 parent 8b2e0c9 commit 1ca1d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ class View {
return
}

if (this.changes.length === this.indexed) return
if (this.map === null) this.map = new Map()
if (this.changes.length === this.indexed) return

while (this.indexed < this.changes.length) {
const c = this.changes[this.indexed++]
Expand Down

0 comments on commit 1ca1d9b

Please sign in to comment.