diff --git a/components/_util/resizeObserver.tsx b/components/_util/resizeObserver.tsx index de7f4c1f24..3fd815c7cd 100644 --- a/components/_util/resizeObserver.tsx +++ b/components/_util/resizeObserver.tsx @@ -53,7 +53,7 @@ class ReactResizeObserver extends React.Component { } render() { - const { children } = this.props; + const { children = null } = this.props; return children; } }