RED-10440: map redacted image hints to redaction.

This commit is contained in:
Nicoleta Panaghiu 2024-11-12 13:51:35 +02:00
parent bcf29eea45
commit 725c99211b

View File

@ -27,8 +27,8 @@ function resolveRedactionType(entry: IEntityLogEntry, hint = false) {
const redaction = hint ? SuperTypes.Hint : SuperTypes.Redaction;
const manualRedaction = hint ? SuperTypes.ManualHint : SuperTypes.ManualRedaction;
if (!entry.engines.length) {
const isRedactedImageHint = entry.state === EntryStates.APPLIED && entry.entryType === EntityTypes.IMAGE_HINT;
if (!entry.engines.length && !isRedactedImageHint) {
return entry.state === EntryStates.PENDING && entry.dictionaryEntry ? redaction : manualRedaction;
}
return redaction;