diff --git a/src/app/annotation-table-term-filter/annotation-table-term-filter.component.ts b/src/app/annotation-table-term-filter/annotation-table-term-filter.component.ts index 645d7b2d..f5f9ec6a 100644 --- a/src/app/annotation-table-term-filter/annotation-table-term-filter.component.ts +++ b/src/app/annotation-table-term-filter/annotation-table-term-filter.component.ts @@ -58,6 +58,7 @@ export class AnnotationTableTermFilterComponent implements OnInit, OnChanges { let seenAncestors: { [key: string]: boolean } = {}; for (let termAnnotation of this.annotationTable) { + seenAncestors[termAnnotation.term.termid] = true; if (termAnnotation.term.interesting_parent_ids) { for (let ancestor of termAnnotation.term.interesting_parent_ids) { seenAncestors[ancestor] = true;