@auth0/quantum-charts 1.3.18 → 1.3.19
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/esm/line-chart/index.js +1 -1
- package/line-chart/index.js +1 -1
- package/package.json +1 -1
package/esm/line-chart/index.js
CHANGED
|
@@ -60,7 +60,7 @@ export function LineChart(props) {
|
|
|
60
60
|
React.useEffect(function () {
|
|
61
61
|
setThreshold(thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]);
|
|
62
62
|
setLineVisibility(__assign(__assign({}, ((thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]) && { thresholdControl: false })), lineVisibility));
|
|
63
|
-
}, [thresholds
|
|
63
|
+
}, [thresholds]); // ⚠️ removed lineVisibility to avoid infinite loop
|
|
64
64
|
var handleLegendMouseEnter = function (e) {
|
|
65
65
|
if (!lineVisibility[e.dataKey]) {
|
|
66
66
|
setLineVisibility(__assign(__assign({}, lineVisibility), { hover: e.dataKey }));
|
package/line-chart/index.js
CHANGED
|
@@ -99,7 +99,7 @@ function LineChart(props) {
|
|
|
99
99
|
React.useEffect(function () {
|
|
100
100
|
setThreshold(thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]);
|
|
101
101
|
setLineVisibility(__assign(__assign({}, ((thresholds === null || thresholds === void 0 ? void 0 : thresholds[0]) && { thresholdControl: false })), lineVisibility));
|
|
102
|
-
}, [thresholds
|
|
102
|
+
}, [thresholds]); // ⚠️ removed lineVisibility to avoid infinite loop
|
|
103
103
|
var handleLegendMouseEnter = function (e) {
|
|
104
104
|
if (!lineVisibility[e.dataKey]) {
|
|
105
105
|
setLineVisibility(__assign(__assign({}, lineVisibility), { hover: e.dataKey }));
|