diff --git a/Plan/react/dashboard/src/components/graphs/LineGraph.js b/Plan/react/dashboard/src/components/graphs/LineGraph.js index 823114f03..1a206ee04 100644 --- a/Plan/react/dashboard/src/components/graphs/LineGraph.js +++ b/Plan/react/dashboard/src/components/graphs/LineGraph.js @@ -41,7 +41,7 @@ const LineGraph = ({id, series, legendEnabled, tall, yAxis, selectedRange, extre }, series: series })); - }, [series, graphTheming, id, t, nightModeEnabled, legendEnabled, yAxis, onSetExtremes, setGraph, onSetExtremes]) + }, [series, graphTheming, id, t, nightModeEnabled, legendEnabled, yAxis, onSetExtremes, setGraph, onSetExtremes, selectedRange]) useEffect(() => { if (graph && extremes) { graph.xAxis[0].setExtremes(extremes.min, extremes.max);