diff --git a/apps/demo-free-layout/src/components/node-panel/node-list.tsx b/apps/demo-free-layout/src/components/node-panel/node-list.tsx index b33c11cbc..b62985e16 100644 --- a/apps/demo-free-layout/src/components/node-panel/node-list.tsx +++ b/apps/demo-free-layout/src/components/node-panel/node-list.tsx @@ -62,9 +62,11 @@ export const NodeList: FC = (props) => { const { onSelect } = props; const context = useClientContext(); const handleClick = (e: React.MouseEvent, registry: FlowNodeRegistry) => { + const json = registry.onAdd?.(context); onSelect({ nodeType: registry.type as string, selectEvent: e, + nodeJSON: json, }); }; return (