Skip to content

Commit

Permalink
fix: Simplify event handling by removing unused parameter in click ev…
Browse files Browse the repository at this point in the history
…ent for ForceDirectedGraph component
  • Loading branch information
bramses committed Oct 26, 2024
1 parent aa79910 commit 9468116
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ForceDirectedGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9468116

Please sign in to comment.