RED-10440: map redacted image hints to redaction.
This commit is contained in:
parent
bcf29eea45
commit
725c99211b
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user