diff --git a/apps/red-ui/src/app/modules/file-preview/services/suggestions.service.ts b/apps/red-ui/src/app/modules/file-preview/services/suggestions.service.ts index eceb4b20a..0732dc7bb 100644 --- a/apps/red-ui/src/app/modules/file-preview/services/suggestions.service.ts +++ b/apps/red-ui/src/app/modules/file-preview/services/suggestions.service.ts @@ -52,11 +52,11 @@ export class SuggestionsService { filterWorkloadSuggestionsInPreview(annotations: AnnotationWrapper[]): AnnotationWrapper[] { if (this._readableRedactionsService.active) { if (this._userPreferenceService.getDisplaySuggestionsInPreview()) { - return annotations.filter(a => !a.isSuggestionRemove); + return annotations.filter(a => !a.isSuggestionRemove && !a.isSuggestionRecategorizeImage); } } - annotations = annotations.filter(a => (!a.isSuggestionAdd || a.isSuggestionAddToFalsePositive) && !a.isSuggestionRecategorizeImage); + annotations = annotations.filter(a => !a.isSuggestionAdd || a.isSuggestionAddToFalsePositive); for (let i = annotations.length - 1; i >= 0; i--) { const foundRemovedRedaction = this.#removedRedactions.find(r => r.id === annotations[i].id); if (foundRemovedRedaction) {