Skip to content

Commit

Permalink
Don't error if prop is removed before disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 27, 2025
1 parent f6559b6 commit 1237bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion panel/models/reactive_esm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ export class ReactiveESM extends HTMLBox {
const remaining = []
for (const [wview, cb] of this._esm_watchers[p]) {
if (wview === view) {
prop.change.disconnect(cb)
prop?.change.disconnect(cb)
} else {
remaining.push([wview, cb])
}
Expand Down

0 comments on commit 1237bb4

Please sign in to comment.