From cf6e5354ec223a48ce535308837de04df1485470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Salgado?= Date: Fri, 30 Apr 2021 16:40:47 +0100 Subject: [PATCH] fix: useEffect dependencies --- .../pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js index 6a37af37..1c156529 100644 --- a/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js +++ b/new-lamassu-admin/src/pages/Dashboard/SystemPerformance/Graphs/RefScatterplot.js @@ -197,7 +197,7 @@ const RefScatterplot = ({ data: realData, timeFrame, timezone }) => { .style('fill', neon) /* ************************** */ - }, [cashIns, cashOuts, realData, timeFrame]) + }, [cashIns, cashOuts, realData, timeFrame, timezone]) useEffect(() => { // first we clear old chart DOM elements on component update