From 93355ef8e35a81b078faa9d73b4b30c589d6293f Mon Sep 17 00:00:00 2001 From: Daniel Maslowski Date: Fri, 27 Oct 2023 19:12:18 +0200 Subject: [PATCH] app: preliminary type onConnect params as any to build the app --- app/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/page.tsx b/app/page.tsx index f5f77ac..1e0fecd 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -18,7 +18,7 @@ export default function Home() { const [edges, setEdges, onEdgesChange] = useEdgesState(iEdges); const onConnect = useCallback( - (params) => setEdges((eds) => addEdge(params, eds)), + (params: any) => setEdges((eds) => addEdge(params, eds)), [setEdges] );