Skip to content

Commit

Permalink
regione-piemonte#850: Query filter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuren1 committed Mar 2, 2021
1 parent 48e1ba4 commit b26c036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/js/components/FeatureGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class SiraGrid extends React.Component {
let pagination = {startIndex: params.startRow, maxFeatures: params.endRow - params.startRow};
let filterObj = this.props.gridType === 'search' ? {
groupFields: this.props.groupFields,
filterFields: this.props.filterFields.filter((field) => field.value),
filterFields: this.props.filterFields.filter(({value = ''}) => value !== null && value !== ''),
spatialField: this.props.spatialField,
pagination
} : {
Expand Down

0 comments on commit b26c036

Please sign in to comment.