RED-2985: 'Skipped' children filters

This commit is contained in:
Adina Țeudan 2021-12-10 15:04:55 +02:00
parent e7edcbbeb0
commit 5b046a2d84

View File

@ -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) {