From f79930017d8780f2050cd0f89a477f19442b0280 Mon Sep 17 00:00:00 2001 From: Bartosz Sekula Date: Thu, 19 Dec 2024 08:47:53 +0100 Subject: [PATCH] AAE-29501 Remove lodash-es import from columns selector --- .../components/columns-selector/columns-selector.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/core/src/lib/datatable/components/columns-selector/columns-selector.component.ts b/lib/core/src/lib/datatable/components/columns-selector/columns-selector.component.ts index 6d1aff838b..49bc661e53 100644 --- a/lib/core/src/lib/datatable/components/columns-selector/columns-selector.component.ts +++ b/lib/core/src/lib/datatable/components/columns-selector/columns-selector.component.ts @@ -27,7 +27,6 @@ import { MatIconModule } from '@angular/material/icon'; import { MatDividerModule } from '@angular/material/divider'; import { MatCheckboxModule } from '@angular/material/checkbox'; import { takeUntilDestroyed } from '@angular/core/rxjs-interop'; -import { clone } from 'lodash-es'; import { ColumnsSearchFilterPipe } from './columns-search-filter.pipe'; @Component({ @@ -106,7 +105,7 @@ export class ColumnsSelectorComponent implements OnInit { } private updateColumnItems(): void { - let columns = clone(this.columns); + let columns = this.columns.map((column) => ({ ...column })); columns = this.sortColumns(columns); this.columnItems = columns; }