This commit is contained in:
StyleZhang 2024-03-19 15:06:47 +08:00
parent 45168d0e00
commit 0c100ac0b1
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import type {
Edge,
Node,
} from '../types'
import { BlockEnum } from '../types'
import { getNodesConnectedSourceOrTargetHandleIdsMap } from '../utils'
import { useNodesSyncDraft } from './use-nodes-sync-draft'
@ -168,6 +169,10 @@ export const useEdgesInteractions = () => {
sourceHandle: 'source',
target: nodeId,
targetHandle,
data: {
sourceType: nodes.find(node => node.id === targetHandle)?.data.type,
targetType: BlockEnum.VariableAssigner,
},
}
})