@evergis/react 4.0.69 → 4.0.72

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.
package/dist/index.js CHANGED
@@ -12187,7 +12187,7 @@ const useChartData = ({ element, type }) => {
12187
12187
  ]);
12188
12188
  const [data, setData] = React.useState(fetchedData);
12189
12189
  React.useEffect(() => {
12190
- if (!loading && fetchedData?.length) {
12190
+ if (!loading) {
12191
12191
  setData(fetchedData);
12192
12192
  }
12193
12193
  }, [loading, fetchedData]);
package/dist/react.esm.js CHANGED
@@ -12185,7 +12185,7 @@ const useChartData = ({ element, type }) => {
12185
12185
  ]);
12186
12186
  const [data, setData] = useState(fetchedData);
12187
12187
  useEffect(() => {
12188
- if (!loading && fetchedData?.length) {
12188
+ if (!loading) {
12189
12189
  setData(fetchedData);
12190
12190
  }
12191
12191
  }, [loading, fetchedData]);
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.0.69",
2
+ "version": "4.0.72",
3
3
  "name": "@evergis/react",
4
4
  "author": "Everpoint",
5
5
  "license": "MIT",
@@ -87,5 +87,5 @@
87
87
  "uuid": "^13.0.0",
88
88
  "wkt": "^0.1.1"
89
89
  },
90
- "gitHead": "dab9bba5a13846a946872eeed99b067b7e2d6d39"
90
+ "gitHead": "600dbc244236372aa957a05c735d23b9c766dab8"
91
91
  }