From 5b046a2d84e663a0791577f594f3afd314dac802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Fri, 10 Dec 2021 15:04:55 +0200 Subject: [PATCH] RED-2985: 'Skipped' children filters --- .../modules/dossier/services/annotation-processing.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/red-ui/src/app/modules/dossier/services/annotation-processing.service.ts b/apps/red-ui/src/app/modules/dossier/services/annotation-processing.service.ts index a38db9a5e..4c4ac1f28 100644 --- a/apps/red-ui/src/app/modules/dossier/services/annotation-processing.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/annotation-processing.service.ts @@ -42,7 +42,7 @@ export class AnnotationProcessingService { const filters: INestedFilter[] = []; annotations?.forEach(a => { - const topLevelFilter = a.superType !== 'hint' && a.superType !== 'redaction' && a.superType !== 'recommendation'; + const topLevelFilter = !['hint', 'redaction', 'recommendation', 'skipped'].includes(a.superType); const key = topLevelFilter ? a.superType : a.superType + a.type; const filter = filterMap.get(key); if (filter) {