diff --git a/libs/platform/table-helpers/services/table.service.ts b/libs/platform/table-helpers/services/table.service.ts index e73f30868be..22cefcc8ceb 100644 --- a/libs/platform/table-helpers/services/table.service.ts +++ b/libs/platform/table-helpers/services/table.service.ts @@ -6,6 +6,7 @@ import { skip } from 'rxjs/operators'; import { DEFAULT_TABLE_STATE } from '../constants'; import { toSignal } from '@angular/core/rxjs-interop'; +import { Nullable } from '@fundamental-ngx/cdk/utils'; import { CollectionFilter, CollectionGroup, CollectionPage, CollectionSort, TableState } from '../interfaces'; import { ColumnsChange, @@ -17,7 +18,6 @@ import { SortChange } from '../models'; import { TableColumn } from '../table-column'; -import { Nullable } from '@fundamental-ngx/cdk'; export type TableStateChange = | TableStateProperty<'sort', SortChange> @@ -191,9 +191,9 @@ export class TableService { const newFilterRules: CollectionFilter[] = filterRules ? filterRules.map((rule) => ({ - ...rule, - fieldName: this._getFieldName(rule.field, rule.fieldName) - })) + ...rule, + fieldName: this._getFieldName(rule.field, rule.fieldName) + })) : []; const state: TableState = { ...prevState, filterBy: newFilterRules }; diff --git a/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts b/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts index 907f881b268..28866993491 100644 --- a/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts +++ b/libs/platform/table/components/table-view-settings-dialog/filtering/filter-step.component.ts @@ -69,7 +69,6 @@ export class FilterStepComponent implements FiltersViewStep { @Input() columnName: string; - /** Go back event */ @Output() back: EventEmitter = new EventEmitter(); diff --git a/libs/platform/table/table.component.ts b/libs/platform/table/table.component.ts index c77b08d9fdb..bb9e014f60b 100644 --- a/libs/platform/table/table.component.ts +++ b/libs/platform/table/table.component.ts @@ -1881,7 +1881,6 @@ export class TableComponent return value.map((val) => this._formatParams(val)).join(', '); } - return Object.entries(value) .map(([key, val]) => `${key}: ${this._formatParams(val)}`) // Recursive call for nested objects .join(', ');