@ssplib/react-components 0.0.219 → 0.0.220

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.
@@ -100,7 +100,8 @@ function Table({ mediaQueryLG, columns, fetchFunc, emptyMsg = {
100
100
  status: j.statusCode,
101
101
  });
102
102
  else {
103
- if (!j || !Array.isArray(j)) {
103
+ const value = (0, lodash_get_1.default)(j, dataPath);
104
+ if (!value || !Array.isArray(value)) {
104
105
  setData({ body: { data: [] } });
105
106
  startData = [];
106
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssplib/react-components",
3
- "version": "0.0.219",
3
+ "version": "0.0.220",
4
4
  "description": "SSP React Components",
5
5
  "main": "index.js",
6
6
  "author": "Pedro Henrique <sr.hudrick@gmail.com>",