diff options
author | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 18:55:40 -0400 |
---|---|---|
committer | Michael Foiani <sotech117@michaels-mbp-3.lan> | 2021-04-16 18:55:40 -0400 |
commit | 79cf63694077d0835a62b9833d31f3c263cdccd9 (patch) | |
tree | 569f1a679567576e0924cb3cd989337625a6e447 /maps-frontend/src/components/Visualization.js | |
parent | 868c250d5c9ab45be1c5a478d2ff5cd82ec60f2d (diff) |
Working version without the feature to see data on a certain ceo.
Diffstat (limited to 'maps-frontend/src/components/Visualization.js')
-rw-r--r-- | maps-frontend/src/components/Visualization.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 ( <div className="Map-canvas"> |