From bf4a9fd98350ea8c4ef5fdcdadf4e807e569f2bc Mon Sep 17 00:00:00 2001 From: melloware Date: Tue, 23 Nov 2021 14:07:57 -0500 Subject: [PATCH] Fix #2463: Constraint typo --- src/components/column/Column.d.ts | 2 +- src/components/datatable/ColumnFilter.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/column/Column.d.ts b/src/components/column/Column.d.ts index 30eb342cb9..c96a6e86bc 100644 --- a/src/components/column/Column.d.ts +++ b/src/components/column/Column.d.ts @@ -146,7 +146,7 @@ interface ColumnFilterOperatorChangeParams { interface ColumnFilterConstraintAddParams { field: string; - constraing: ColumnFilterMetaData; + constraint: ColumnFilterMetaData; } interface ColumnFilterConstraintRemoveParams extends ColumnFilterConstraintAddParams {} diff --git a/src/components/datatable/ColumnFilter.js b/src/components/datatable/ColumnFilter.js index a8c6357413..3b4b5bbf14 100644 --- a/src/components/datatable/ColumnFilter.js +++ b/src/components/datatable/ColumnFilter.js @@ -305,7 +305,7 @@ export class ColumnFilter extends Component { let filters = { ...this.props.filters }; let newConstraint = { value: null, matchMode: defaultConstraint.matchMode }; filters[this.field].constraints.push(newConstraint); - filterConstraintAddCallback && filterConstraintAddCallback({ field: this.field, constraing: newConstraint }); + filterConstraintAddCallback && filterConstraintAddCallback({ field: this.field, constraint: newConstraint }); this.props.onFilterChange(filters); if (!this.getColumnProp('showApplyButton')) {