Skip to content

Commit

Permalink
Fix type check for null (#25595)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage authored Oct 31, 2022
1 parent 2ac77aa commit 765805b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-server/src/ReactFlightServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ function attemptResolveElement(
}
if (__DEV__) {
jsxPropsParents.set(props, type);
if (typeof props.children === 'object') {
if (typeof props.children === 'object' && props.children !== null) {
jsxChildrenParents.set(props.children, type);
}
}
Expand Down

0 comments on commit 765805b

Please sign in to comment.