From 831a7d4a54b1b81a5c2e5e8c60f62961ba58c025 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 15 Sep 2026 08:39:58 -0700 Subject: [PATCH] Agree sonar --- src-ui/src/app/services/document-list-view.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/services/document-list-view.service.ts b/src-ui/src/app/services/document-list-view.service.ts index ab66e8d0e6..429cde2c09 100644 --- a/src-ui/src/app/services/document-list-view.service.ts +++ b/src-ui/src/app/services/document-list-view.service.ts @@ -501,7 +501,10 @@ export class DocumentListViewService { get excluded(): Set { this.trackState() - return (this.activeListViewState.excluded ??= new Set()) + if (!this.activeListViewState.excluded) { + this.activeListViewState.excluded = new Set() + } + return this.activeListViewState.excluded } get selectedCount(): number {