From d0e9dd5c27ab4f01cad9409e51582e5f97967a66 Mon Sep 17 00:00:00 2001 From: Valentin Mihai Date: Fri, 18 Nov 2022 17:52:03 +0200 Subject: [PATCH] RED-5406 - fix --- .../components/view-switch/view-switch.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts index 4d8aa9f76..1f968e087 100644 --- a/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/components/view-switch/view-switch.component.ts @@ -51,7 +51,7 @@ export class ViewSwitchComponent { async #switchToRedactedView() { const unapprovedSuggestionsWarning = this._userPreferenceService.getUnapprovedSuggestionsWarning(); - if (unapprovedSuggestionsWarning) { + if (!unapprovedSuggestionsWarning) { const suggestions = (await this._fileDataService.annotations).filter(a => a.isSuggestion); if (suggestions.length) { const displaySuggestionsInPreview = this._userPreferenceService.getDisplaySuggestionsInPreview();