We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07a2ff2 commit 077628aCopy full SHA for 077628a
1 file changed
src/utils.ts
@@ -152,6 +152,7 @@ export function getParameterCode(
152
return `({} as ${refType})`;
153
}
154
155
+ //TODO: need to distinguish between variant NODE and everything else
156
if (value.__typename === "NodeFunctionIdWrapper") {
157
const wrapperId = (value as NodeFunctionIdWrapper).id;
158
const refNode = findNodeById(flow, wrapperId!);
@@ -168,7 +169,7 @@ export function getParameterCode(
168
169
};
170
171
const returnNode = findReturnNode(refNode);
- if (!returnNode) return '(() => undefined)';
172
+ if (!returnNode) return '(() => ({} as any))()';
173
174
const validation = getNodeValidation?.(flow, returnNode);
175
return `(() => ({} as ${validation?.returnType}))`;
0 commit comments