From 9468116da6c6f5384c86d16c6cafdc7a0030b84f Mon Sep 17 00:00:00 2001 From: Bram Adams <3282661+bramses@users.noreply.github.com> Date: Sat, 26 Oct 2024 19:01:48 -0400 Subject: [PATCH] fix: Simplify event handling by removing unused parameter in click event for ForceDirectedGraph component --- src/components/ForceDirectedGraph.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ForceDirectedGraph.tsx b/src/components/ForceDirectedGraph.tsx index 83f3592..15f99ab 100644 --- a/src/components/ForceDirectedGraph.tsx +++ b/src/components/ForceDirectedGraph.tsx @@ -158,7 +158,7 @@ const ForceDirectedGraph = ({ data }: any) => { if (d.group === 'parent') return 'purple'; return 'gray'; }) - .on('click', (event, d) => openModal(d.label, d.id)) + .on('click', (_, d) => openModal(d.label, d.id)) .call(drag(simulation) as any); const labels = g