mirror of
https://github.com/OFFIS-ESC/constellation-analyzer
synced 2026-01-27 15:53:42 +00:00
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:
parent
f308edbfa6
commit
38cae3cdd9
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ interface GraphEditorProps {
|
||||||
selectedEdge: Relation | null;
|
selectedEdge: Relation | null;
|
||||||
onNodeSelect: (node: Actor | null) => void;
|
onNodeSelect: (node: Actor | null) => void;
|
||||||
onEdgeSelect: (edge: Relation | 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue