From ccb441be977ff8c64c08cbec2fac9669a66eac2d Mon Sep 17 00:00:00 2001 From: Antonov548 Date: Tue, 19 Dec 2023 17:32:00 +0100 Subject: [PATCH] fix warnings --- examples/page/src/graphs/ShortestPath.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/page/src/graphs/ShortestPath.js b/examples/page/src/graphs/ShortestPath.js index 48cbf8b..7311c77 100644 --- a/examples/page/src/graphs/ShortestPath.js +++ b/examples/page/src/graphs/ShortestPath.js @@ -82,7 +82,7 @@ export const ShortestPath = ({ igraph }) => { vpath.delete(); epath.delete(); } - }, [selected]) + }, [selected, graph, igraph]) const handleNodeClick = useCallback(node => { if (selected.length === 2) {