mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-15 15:16:59 +01:00
Add missing dependency to LineGraph useEffect
This commit is contained in:
parent
18801a4757
commit
8c1a357323
@ -41,7 +41,7 @@ const LineGraph = ({id, series, legendEnabled, tall, yAxis, selectedRange, extre
|
|||||||
},
|
},
|
||||||
series: series
|
series: series
|
||||||
}));
|
}));
|
||||||
}, [series, graphTheming, id, t, nightModeEnabled, legendEnabled, yAxis, onSetExtremes, setGraph, onSetExtremes])
|
}, [series, graphTheming, id, t, nightModeEnabled, legendEnabled, yAxis, onSetExtremes, setGraph, onSetExtremes, selectedRange])
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (graph && extremes) {
|
if (graph && extremes) {
|
||||||
graph.xAxis[0].setExtremes(extremes.min, extremes.max);
|
graph.xAxis[0].setExtremes(extremes.min, extremes.max);
|
||||||
|
Loading…
Reference in New Issue
Block a user