@megha-ui/react 1.2.120 → 1.2.121
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.
|
@@ -34,10 +34,11 @@ const GridFilterDropdown = ({ headerDropdownIndex, searchOptions, position, colu
|
|
|
34
34
|
`${item}`.toLowerCase().includes(filterSearch.toLowerCase())));
|
|
35
35
|
}, [columnData, filterSearch]);
|
|
36
36
|
const handleSelect = (value, columnKey) => {
|
|
37
|
+
var _a;
|
|
37
38
|
let _uniqueSeach = {};
|
|
38
39
|
if (value === "all") {
|
|
39
40
|
console.log({ uniqueSearch, columnKey, columnData, shouldALL: uniqueSearch[columnKey].every((item) => columnData.includes(item)) });
|
|
40
|
-
if (uniqueSearch[columnKey] && uniqueSearch[columnKey].every((item) => columnData.includes(item))) {
|
|
41
|
+
if (((_a = uniqueSearch === null || uniqueSearch === void 0 ? void 0 : uniqueSearch[columnKey]) === null || _a === void 0 ? void 0 : _a.length) > 0 && uniqueSearch[columnKey].every((item) => columnData.includes(item))) {
|
|
41
42
|
_uniqueSeach = Object.assign(Object.assign({}, uniqueSearch), { [columnKey]: [] });
|
|
42
43
|
}
|
|
43
44
|
else {
|
package/package.json
CHANGED