From 24204c4b63c28dc4d69d798c4cf888c6cb3e0eab Mon Sep 17 00:00:00 2001 From: Alex Molodyh Date: Tue, 26 Nov 2024 14:07:41 -0800 Subject: [PATCH] [AAE-22900] PR comments update - cleaned up sortingMode set --- lib/core/src/lib/datatable/data/object-datatable-adapter.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/core/src/lib/datatable/data/object-datatable-adapter.ts b/lib/core/src/lib/datatable/data/object-datatable-adapter.ts index 2c3d727189..12205039a4 100644 --- a/lib/core/src/lib/datatable/data/object-datatable-adapter.ts +++ b/lib/core/src/lib/datatable/data/object-datatable-adapter.ts @@ -71,11 +71,7 @@ export class ObjectDataTableAdapter implements DataTableAdapter { constructor(data: any[] = [], schema: DataColumn[] = [], sortingMode: SortingMode = 'client') { this._rows = []; this._columns = []; - - if (!sortingMode) { - sortingMode = 'client'; - } - this._sortingMode = sortingMode; + this.sortingMode = sortingMode; if (data && data.length > 0) { this._rows = data.map((item) => new ObjectDataRow(item));