refactor(core): rename useNodeConnections params (#1743)
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -6,11 +6,11 @@ import type { ProcessNodeData } from './types'
|
||||
const props = defineProps<NodeProps<ProcessNodeData>>()
|
||||
|
||||
const sourceConnections = useNodeConnections({
|
||||
type: 'target',
|
||||
handleType: 'target',
|
||||
})
|
||||
|
||||
const targetConnections = useNodeConnections({
|
||||
type: 'source',
|
||||
handleType: 'source',
|
||||
})
|
||||
|
||||
const isSender = toRef(() => sourceConnections.value.length <= 0)
|
||||
|
||||
@@ -10,12 +10,12 @@ defineProps<{ id: string }>()
|
||||
const sourceConnections = useNodeConnections({
|
||||
// type target means all connections where *this* node is the target
|
||||
// that means we go backwards in the graph to find the source of the connection(s)
|
||||
type: 'target',
|
||||
handleType: 'target',
|
||||
})
|
||||
|
||||
// Get the source connections of the operator node
|
||||
const operatorSourceConnections = useNodeConnections({
|
||||
type: 'target',
|
||||
handleType: 'target',
|
||||
nodeId: () => sourceConnections.value[0]?.source,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user