From 79cf63694077d0835a62b9833d31f3c263cdccd9 Mon Sep 17 00:00:00 2001 From: Michael Foiani Date: Fri, 16 Apr 2021 18:55:40 -0400 Subject: Working version without the feature to see data on a certain ceo. --- maps-frontend/src/components/Visualization.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'maps-frontend/src/components/Visualization.js') diff --git a/maps-frontend/src/components/Visualization.js b/maps-frontend/src/components/Visualization.js index c0e5811..91082e9 100644 --- a/maps-frontend/src/components/Visualization.js +++ b/maps-frontend/src/components/Visualization.js @@ -51,7 +51,7 @@ function Visualization(props) { } // Hooks to update graph state - useEffect(() => setGraphState({nodes: getNodes(), edges: getEdges()}), [props.data]); + useEffect(() => setGraphState({nodes: getNodes(), edges: getEdges()}), [JSON.stringify(props.data)]); return (
-- cgit v1.2.3-70-g09d2