@gravity-ui/charts 1.38.5 → 1.38.6

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.
@@ -12,8 +12,7 @@ export function useAxis(props) {
12
12
  React.useEffect(() => {
13
13
  axesStateRunRef.current++;
14
14
  axesStateReady.current = false;
15
- const shouldWaitForLegendReady = !preparedLegend || ((preparedLegend === null || preparedLegend === void 0 ? void 0 : preparedLegend.enabled) && !legendConfig);
16
- if (shouldWaitForLegendReady) {
15
+ if (!preparedLegend || !legendConfig) {
17
16
  return;
18
17
  }
19
18
  (async function () {
@@ -12,8 +12,7 @@ export function useAxis(props) {
12
12
  React.useEffect(() => {
13
13
  axesStateRunRef.current++;
14
14
  axesStateReady.current = false;
15
- const shouldWaitForLegendReady = !preparedLegend || ((preparedLegend === null || preparedLegend === void 0 ? void 0 : preparedLegend.enabled) && !legendConfig);
16
- if (shouldWaitForLegendReady) {
15
+ if (!preparedLegend || !legendConfig) {
17
16
  return;
18
17
  }
19
18
  (async function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/charts",
3
- "version": "1.38.5",
3
+ "version": "1.38.6",
4
4
  "description": "A flexible JavaScript library for data visualization and chart rendering using React",
5
5
  "license": "MIT",
6
6
  "main": "dist/cjs/index.js",