diff --git a/src/components/NoticeIcon/index.js b/src/components/NoticeIcon/index.js index 80ac2c16d873a34052e3bc2a45c94930d2e054f9..3134acedd3a242b59192c11d59dd78db34a7637b 100644 --- a/src/components/NoticeIcon/index.js +++ b/src/components/NoticeIcon/index.js @@ -40,7 +40,7 @@ export default class NoticeIcon extends PureComponent { if (!children) { return null; } - const panes = children.map((child) => { + const panes = React.Children.map(children, (child) => { const title = child.props.list && child.props.list.length > 0 ? `${child.props.title} (${child.props.list.length})` : child.props.title; return (