added two linter suppressions on useEffect deps

This commit is contained in:
Cam Otts 2023-03-16 14:59:38 -05:00
parent 7d1b6192f1
commit 20a0ecacde
No known key found for this signature in database
GPG Key ID: 367B7C7EBD84A8BD

View File

@ -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