Skip to content

Commit cf73a69

Browse files
authored
fix: serializeNode was naively checking if values were falsey (#131)
* fix: serializeNode was naively checking if values were falsey * Update serializeNode.tsx
1 parent 1143bf6 commit cf73a69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/utils/serializeNode.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const serializeComp = (
1717
let { type, isCanvas, props } = data;
1818
props = Object.keys(props).reduce((result: Record<string, any>, key) => {
1919
const prop = props[key];
20-
if (!prop) {
20+
21+
if (prop === undefined || prop === null) {
2122
return result;
2223
}
2324

0 commit comments

Comments
 (0)