From 01c0d62dc9cac676a7c694ca4f4a311a3ce203cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=87etin?= <69278826+cetincakiroglu@users.noreply.github.com> Date: Wed, 20 Mar 2024 14:30:42 +0300 Subject: [PATCH] Fixed #14888 - Remove extra conditional --- src/app/components/table/table.ts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index 343279b4a37..718b6400cf9 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -1345,6 +1345,7 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable if (this._columns && this.isStateful() && this.reorderableColumns && !this.columnOrderStateRestored) { this.restoreColumnOrder(); + this.tableService.onColumnsChange(this._columns); } } @@ -2854,9 +2855,9 @@ export class Table implements OnInit, AfterViewInit, AfterContentInit, Blockable this.tableWidthState = state.tableWidth; } - if (this.reorderableColumns) { - this.restoreColumnOrder(); - } + // if (this.reorderableColumns) { + // this.restoreColumnOrder(); + // } if (state.expandedRowKeys) { this.expandedRowKeys = state.expandedRowKeys; @@ -5751,7 +5752,16 @@ export class ColumnFilter implements AfterContentInit { - +