refactor(useNodeConnections): change param names
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
$$restProps;
|
||||
|
||||
const connections = useNodeConnections({
|
||||
nodeId: id,
|
||||
type: 'target'
|
||||
id: id,
|
||||
handleType: 'target'
|
||||
});
|
||||
|
||||
$: nodeData = useNodesData<MyNode>($connections.map((connection) => connection.source));
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
|
||||
const { updateNodeData } = useSvelteFlow();
|
||||
const connections = useNodeConnections({
|
||||
nodeId: id,
|
||||
type: 'target'
|
||||
id: id,
|
||||
handleType: 'target'
|
||||
});
|
||||
|
||||
$: nodeData = useNodesData<MyNode>($connections[0]?.source);
|
||||
|
||||
Reference in New Issue
Block a user