From b26c03612160c59af9562e1a3702b579e4c1e954 Mon Sep 17 00:00:00 2001 From: Suren Date: Tue, 2 Mar 2021 19:22:37 +0530 Subject: [PATCH] #850: Query filter fix --- frontend/js/components/FeatureGrid.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/js/components/FeatureGrid.jsx b/frontend/js/components/FeatureGrid.jsx index c1dcefc65..3dd928dcf 100644 --- a/frontend/js/components/FeatureGrid.jsx +++ b/frontend/js/components/FeatureGrid.jsx @@ -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 } : {