Skip to content

Commit 3efa55e

Browse files
committed
feat: update nodeId assignment to handle "undefined" case in flow validation
1 parent b5d6618 commit 3efa55e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/validation/getFlowValidation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const getFlowValidation = (
6262
}
6363

6464
if (closestMatch) {
65-
nodeId = closestMatch[1] as NodeFunction['id'];
65+
nodeId = closestMatch[1] === "undefined" ? undefined : closestMatch[1] as NodeFunction['id'];
6666
parameterIndex = parseInt(closestMatch[2], 10);
6767
}
6868
}

0 commit comments

Comments
 (0)