Skip to content

Commit 6e2ca2a

Browse files
committed
fix: better type matching
1 parent 0982a70 commit 6e2ca2a

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 = val?.value ? stringify(val?.value) : undefined
137+
const jsonString = val?.value !== null && val?.value !== undefined ? stringify(val?.value) : undefined
138138
return `/* @pos ${id} ${index} */ ${jsonString}`;
139139
}
140140
if (val.__typename === "SubFlowValue") {

0 commit comments

Comments
 (0)