@megha-ui/react 1.2.407 → 1.2.408
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -136,9 +136,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
136
136
|
})
|
|
137
137
|
: true);
|
|
138
138
|
console.log(searchQueries, "searchQueries");
|
|
139
|
-
const _searchAvailableColumns = filterColumns.filter((column) =>
|
|
140
|
-
return searchQueries[column.key] && searchQueries[column.key].text !== "";
|
|
141
|
-
});
|
|
139
|
+
const _searchAvailableColumns = filterColumns.filter((column) => searchQueries[column.key]);
|
|
142
140
|
if (_searchAvailableColumns.length > 0) {
|
|
143
141
|
console.log(_searchAvailableColumns, "_searchAvailableColumns");
|
|
144
142
|
_filteredData = _filteredData.filter((item) => searchOp === "and"
|
|
@@ -308,6 +306,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
|
|
|
308
306
|
}
|
|
309
307
|
}));
|
|
310
308
|
}
|
|
309
|
+
console.log(_filteredData, "After search");
|
|
311
310
|
_filteredData = _filteredData.filter((item) => {
|
|
312
311
|
const query = (globalInputSearch || "").toLowerCase().split(",");
|
|
313
312
|
const rowValues = [];
|
package/package.json
CHANGED