From 38cae3cdd9972b91d61ace0d4ae14090efeaa5b3 Mon Sep 17 00:00:00 2001 From: Jan-Henrik Bruhn Date: Fri, 10 Oct 2025 22:29:45 +0200 Subject: [PATCH] fix: whoopsie doopsie accident - correct onAddNodeRequest type signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed TypeScript error where onAddNodeRequest callback parameter type was incorrectly defined. The prop expects a function that receives a callback, not the node type ID directly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/Editor/GraphEditor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Editor/GraphEditor.tsx b/src/components/Editor/GraphEditor.tsx index 439b00e..943b4ea 100644 --- a/src/components/Editor/GraphEditor.tsx +++ b/src/components/Editor/GraphEditor.tsx @@ -41,7 +41,7 @@ interface GraphEditorProps { selectedEdge: Relation | null; onNodeSelect: (node: Actor | null) => void; onEdgeSelect: (edge: Relation | null) => void; - onAddNodeRequest?: (nodeTypeId: string, position?: { x: number; y: number }) => void; + onAddNodeRequest?: (callback: (nodeTypeId: string, position?: { x: number; y: number }) => void) => void; } /**