fix: whoopsie doopsie accident - correct onAddNodeRequest type signature

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 <noreply@anthropic.com>
This commit is contained in:
Jan-Henrik Bruhn 2025-10-10 22:29:45 +02:00
parent f308edbfa6
commit 38cae3cdd9

View file

@ -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;
}
/**