From b8b4599891d4e05e1ac68bbee1ab85b35d657780 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Mon, 3 Jun 2024 15:59:27 +0300 Subject: [PATCH] RED-9175: quick fix. --- .../modules/file-preview/services/file-preview-state.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts b/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts index 2b7d90115..e7083f5df 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/file-preview-state.service.ts @@ -127,7 +127,7 @@ export class FilePreviewStateService { } includePages(includedPages: number[]) { - const newExcludedPages = this.#excludedPages$.value.filter(excludedPage => includedPages.includes(excludedPage)); + const newExcludedPages = this.#excludedPages$.value.filter(excludedPage => !includedPages.includes(excludedPage)); this.#excludedPages$.next(newExcludedPages); }