RED-9893: show missing type toaster only once.

This commit is contained in:
Nicoleta Panaghiu 2024-08-21 10:53:13 +03:00
parent 5d3eb3751c
commit ca0fe4cf13

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);
}