From 122ea61c37b3af54b654a0042de884f5914a7fff Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Fri, 6 Sep 2024 18:34:41 -0400 Subject: [PATCH] Fixed area chart not updating on filter change --- Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx index ead38c6ac..121200acf 100644 --- a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx +++ b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx @@ -97,7 +97,7 @@ const MonitorDetailsAreaChart = ({ checks }) => { }); }; - const memoizedChecks = useMemo(() => checks, []); + const memoizedChecks = useMemo(() => checks, [checks[0]]); const theme = useTheme();