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()
|
.getEdges()
|
||||||
.some(
|
.some(
|
||||||
(e) =>
|
(e) =>
|
||||||
e.targetHandle.split("|")[1] === t &&
|
(JSON.parse(e.targetHandle) as targetHandleType).fieldName ===
|
||||||
e.targetHandle.split("|")[2] === n.id
|
t &&
|
||||||
|
(JSON.parse(e.targetHandle) as targetHandleType).id === n.id
|
||||||
)
|
)
|
||||||
? [
|
? [
|
||||||
`${type} is missing ${
|
`${type} is missing ${
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue