From 40d0c882324ccae8d66205c3f581d2450b3fc3a9 Mon Sep 17 00:00:00 2001 From: DominikIwanek Date: Thu, 12 Oct 2023 21:44:58 +0200 Subject: [PATCH] Revert "[ACS-5566] - changes for pipeline" This reverts commit 5a15410a7023d662b89f3d3c0f3586ead3f19925. --- .../components/document-list.component.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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();