From 12bb8e97b7b22447f340fa02a1201a363d0084dc Mon Sep 17 00:00:00 2001 From: Baud <107637688+sbaudlr@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:16:57 +0100 Subject: [PATCH] chore: More readable comparison Co-authored-by: Julian Waller --- packages/live-status-gateway/src/collections/adLibActions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/live-status-gateway/src/collections/adLibActions.ts b/packages/live-status-gateway/src/collections/adLibActions.ts index cda7901c924..14787a90be1 100644 --- a/packages/live-status-gateway/src/collections/adLibActions.ts +++ b/packages/live-status-gateway/src/collections/adLibActions.ts @@ -42,7 +42,7 @@ export class AdLibActionsHandler await new Promise(process.nextTick.bind(this)) if (!this._collection) return if (!this._publication) return - if (!(prevRundownId === this._curRundownId && prevCurPartInstance === this._curPartInstance)) { + if (prevRundownId !== this._curRundownId || prevCurPartInstance !== this._curPartInstance)) { if (this._subscriptionId) this._coreHandler.unsubscribe(this._subscriptionId) if (this._dbObserver) this._dbObserver.stop() if (this._curRundownId && this._curPartInstance) {