Skip to content

Commit d259a34

Browse files
committed
address feedback
1 parent 47336af commit d259a34

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
@@ -20,7 +20,7 @@ export const serializeComp = (
2020
props = Object.keys(props).reduce((result: Record<string, any>, key) => {
2121
const prop = props[key];
2222

23-
if (prop === undefined || prop === null) {
23+
if (prop === undefined || prop === null || typeof prop === 'function') {
2424
return result;
2525
}
2626

0 commit comments

Comments
 (0)