diff --git a/src/Logic/UIEventSource.ts b/src/Logic/UIEventSource.ts index 88b5dc953..4b892bb71 100644 --- a/src/Logic/UIEventSource.ts +++ b/src/Logic/UIEventSource.ts @@ -626,11 +626,9 @@ class MappedStore extends Store { } private registerCallbacksToUpstream() { - const self = this - - this._unregisterFromUpstream = this._upstream.addCallback((_) => self.update()) + this._unregisterFromUpstream = this._upstream.addCallback((_) => this.update()) this._unregisterFromExtraStores = this._extraStores?.map((store) => - store?.addCallback((_) => self.update()) + store?.addCallback((_) => this.update()) ) this._callbacksAreRegistered = true }