Merge branch 'RED-10440' into 'master'

RED-10440: map redacted image hints to redaction.

See merge request redactmanager/red-ui!692
This commit is contained in:
Dan Percic 2024-11-12 13:00:57 +01:00
commit 6219ceb0a2

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;