From 20a0ecacdef59c625c99a2fa9f85aa3a694af5b4 Mon Sep 17 00:00:00 2001 From: Cam Otts Date: Thu, 16 Mar 2023 14:59:38 -0500 Subject: [PATCH] added two linter suppressions on useEffect deps --- ui/src/console/visualizer/Visualizer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui/src/console/visualizer/Visualizer.js b/ui/src/console/visualizer/Visualizer.js index 274f9018..b3952a97 100644 --- a/ui/src/console/visualizer/Visualizer.js +++ b/ui/src/console/visualizer/Visualizer.js @@ -17,12 +17,14 @@ const Visualizer = (props) => { console.log("resetting selection", props.selection); props.setSelection(props.defaultSelection); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.overview]); markSelected(networkGraph, props.selection); useEffect(() => { markSelected(networkGraph, props.selection); + // eslint-disable-next-line react-hooks/exhaustive-deps }, [props.selection]); // fgRef to access force graph controls from this component