update validateNode function to use handle id as JSON
This commit is contained in:
parent
3a185d915d
commit
5afc10f721
1 changed files with 3 additions and 2 deletions
|
|
@ -193,8 +193,9 @@ export function validateNode(
|
|||
.getEdges()
|
||||
.some(
|
||||
(e) =>
|
||||
e.targetHandle.split("|")[1] === t &&
|
||||
e.targetHandle.split("|")[2] === n.id
|
||||
(JSON.parse(e.targetHandle) as targetHandleType).fieldName ===
|
||||
t &&
|
||||
(JSON.parse(e.targetHandle) as targetHandleType).id === n.id
|
||||
)
|
||||
? [
|
||||
`${type} is missing ${
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue