Merge branch 'RED-9893' into 'master'

RED-9893: show missing type toaster only once.

See merge request redactmanager/red-ui!551
This commit is contained in:
Dan Percic 2024-08-21 09:59:10 +02:00
commit 65fc2971ac

View File

@ -137,7 +137,7 @@ export class FileDataService extends EntitiesService<AnnotationWrapper, Annotati
this.#logger.info('[REDACTION_LOG] Redaction log loaded', redactionLog);
let annotations = await this.#convertData(redactionLog);
this.#checkMissingTypes();
if (!this.#annotations().length && annotations.length !== this.missingTypes.size) this.#checkMissingTypes();
annotations = this.#isIqserDevMode ? annotations : annotations.filter(a => !a.isFalsePositive);
this.#annotations.set(annotations);
}