update validateNode function to use handle id as JSON

This commit is contained in:
anovazzi1 2023-08-02 22:39:42 -03:00
commit 5afc10f721

View file

@ -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 ${