@megha-ui/react 1.2.23 → 1.2.24

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.
@@ -994,13 +994,12 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
994
994
  const filterColumn = gridColumns.reduce((acc, column) => {
995
995
  const query = searchQueries[column.key];
996
996
  const uniqeValues = (0, gridHeader_1.getColumnData)(column.key, filteredData);
997
- console.log({ uniqeValues, uniqueSearch: uniqueSearch[column.key] });
998
997
  if (query &&
999
998
  (query.text !== "" || query.type !== defaultSearchOperation)) {
1000
999
  acc[column.key] = query.text;
1001
1000
  }
1002
1001
  else if (uniqueSearch[column.key] &&
1003
- uniqeValues.toString() !== uniqueSearch[column.key].sort().toString()) {
1002
+ uniqeValues.toString() !== uniqueSearch[column.key].toString()) {
1004
1003
  acc[column.key] = uniqueSearch[column.key].join(",");
1005
1004
  }
1006
1005
  return acc;
@@ -1016,7 +1015,7 @@ const Grid = ({ columns, wrapperClass, updateGridColumns, data, height, sortable
1016
1015
  }
1017
1016
  else if (uniqueSearch[column.key] &&
1018
1017
  uniqeValues.toString() !==
1019
- uniqueSearch[column.key].sort().toString()) {
1018
+ uniqueSearch[column.key].toString()) {
1020
1019
  acc[column.key] = uniqueSearch[column.key].join(",");
1021
1020
  }
1022
1021
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@megha-ui/react",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "description": "A collection of reusable UI components for React applications, built with TypeScript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",