diff --git a/packages/grafana-ui/src/components/uPlot/Plot.tsx b/packages/grafana-ui/src/components/uPlot/Plot.tsx index 5ae2fa1f638..49d13b7f61f 100755 --- a/packages/grafana-ui/src/components/uPlot/Plot.tsx +++ b/packages/grafana-ui/src/components/uPlot/Plot.tsx @@ -19,7 +19,11 @@ function sameConfig(prevProps: PlotProps, nextProps: PlotProps) { function sameTimeRange(prevProps: PlotProps, nextProps: PlotProps) { let prevTime = prevProps.timeRange; let nextTime = nextProps.timeRange; - return nextTime.from.valueOf() === prevTime.from.valueOf() && nextTime.to.valueOf() === prevTime.to.valueOf(); + + return ( + prevTime === nextTime || + (nextTime.from.valueOf() === prevTime.from.valueOf() && nextTime.to.valueOf() === prevTime.to.valueOf()) + ); } type UPlotChartState = {