@ssplib/react-components 0.0.206 → 0.0.207
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.
|
@@ -433,7 +433,8 @@ function Table({ columns, fetchFunc, emptyMsg = {
|
|
|
433
433
|
filterBasedOnList(appliedFilters);
|
|
434
434
|
}, [appliedFilters]);
|
|
435
435
|
const filterBasedOnList = (filteredList) => {
|
|
436
|
-
|
|
436
|
+
var _a;
|
|
437
|
+
let rawList = JSON.parse(JSON.stringify(Array.isArray(startData) ? startData : (_a = (0, lodash_get_1.default)(startData, dataPath)) !== null && _a !== void 0 ? _a : '[]'));
|
|
437
438
|
if (filteredList.length <= 0 || rawList.length <= 0) {
|
|
438
439
|
setList(rawList);
|
|
439
440
|
setPagCount(getCount(rawList));
|