@megha-ui/react 1.2.776 → 1.2.777
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.
|
@@ -159,17 +159,14 @@ withCard = false, cardClassName, cardHeader, title, headerLeft, headerRight, sub
|
|
|
159
159
|
? Object.keys(fixedFilterValues)
|
|
160
160
|
.filter((key) => fixedColumns.find((col) => col.key === key))
|
|
161
161
|
.every((key) => {
|
|
162
|
-
var _a, _b;
|
|
162
|
+
var _a, _b, _c, _d, _e;
|
|
163
163
|
const filterValue = fixedFilterValues[key];
|
|
164
164
|
if (filterValue.length === 0)
|
|
165
165
|
return true;
|
|
166
166
|
const cellValue = ((_b = (_a = item[key]) === null || _a === void 0 ? void 0 : _a.value) === null || _b === void 0 ? void 0 : _b.toString()) || "";
|
|
167
167
|
const col = columns.find((item) => key === item.key);
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
isArrayString: col === null || col === void 0 ? void 0 : col.isArrayString,
|
|
171
|
-
valueArray: item[key].isArrayString
|
|
172
|
-
});
|
|
168
|
+
const arrayColumn = (_c = col === null || col === void 0 ? void 0 : col.isArrayString) !== null && _c !== void 0 ? _c : false;
|
|
169
|
+
const arrayValue = (_e = (_d = item === null || item === void 0 ? void 0 : item[key]) === null || _d === void 0 ? void 0 : _d.isArrayString) !== null && _e !== void 0 ? _e : false;
|
|
173
170
|
return filterValue.includes(cellValue);
|
|
174
171
|
})
|
|
175
172
|
: true);
|
package/package.json
CHANGED