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