Skip to content

Commit 7c21920

Browse files
committed
Update setEdges to remove warning for GHPages
1 parent 86e008e commit 7c21920

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/GraphVisualiser.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import GenerateRandomGraph from '../algorithms/graphs/GenerateRandomGraph';
44
import '../styles/graph.css';
55

66
const GraphVisualiser: React.FC = () => {
7-
const [edges, setEdges] = useState([]);
7+
const [edges, _] = useState([]);
88
const [nodes, setNodes] = useState<{ id: string }[]>([]); // Specify the type of the nodes state variable
99

1010
useEffect(() => {

0 commit comments

Comments
 (0)