Skip to content

Commit 0982a70

Browse files
committed
fix: null check within validation
1 parent 643040d commit 0982a70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ export function generateFlowSourceCode(
134134
return `/* @pos ${id} ${index} */ ${refCode}`;
135135
}
136136
if (val.__typename === "LiteralValue") {
137-
const jsonString = stringify(val?.value)
137+
const jsonString = val?.value ? stringify(val?.value) : undefined
138138
return `/* @pos ${id} ${index} */ ${jsonString}`;
139139
}
140140
if (val.__typename === "SubFlowValue") {

0 commit comments

Comments
 (0)