Skip to content

Commit 47336af

Browse files
authored
Update serializeNode.tsx
1 parent 56b560d commit 47336af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/serializeNode.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const serializeComp = (
3131
}
3232
return serializeComp(child, resolver);
3333
});
34-
} else if (prop.type) {
34+
} else if (typeof prop.type === 'function') {
3535
result[key] = serializeComp(prop, resolver);
3636
} else {
3737
result[key] = prop;

0 commit comments

Comments
 (0)