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() .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 ${