Skip to content

Commit

Permalink
unset isRemoved if readded
Browse files Browse the repository at this point in the history
  • Loading branch information
chm-diederichs committed Jun 12, 2024
1 parent 229b62c commit 2b65e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,7 @@ module.exports = class Autobase extends ReadyResource {
let w = this.activeWriters.get(key)
if (w !== null) {
if (isAdded && w.core.writable && this.localWriter === null) this._setLocalWriter(w)
if (w.isRemoved && isAdded) w.isRemoved = false
w.seen(seen)
return w
}
Expand Down

0 comments on commit 2b65e54

Please sign in to comment.