diff --git a/lib/content-services/src/lib/document-list/components/document-list.component.ts b/lib/content-services/src/lib/document-list/components/document-list.component.ts index e6a353ea0a0..132a970291b 100644 --- a/lib/content-services/src/lib/document-list/components/document-list.component.ts +++ b/lib/content-services/src/lib/document-list/components/document-list.component.ts @@ -482,15 +482,14 @@ export class DocumentListComponent extends DataTableSchema implements OnInit, On } ngAfterContentInit() { - if (this.columnList) { - this.columnList.columns.changes.pipe(takeUntil(this.onDestroy$)).subscribe(() => { - this.createColumns(); - this.data.setColumns(this.columns); - }); - } + this.setTableSchema(); + } + + private setTableSchema() { this.createDatatableSchema(); this.data.setColumns(this.columns); } + ngOnChanges(changes: SimpleChanges) { if (!changes['preselectNodes']) { this.resetSelection();