Commit 1a65f5b3 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ… Committed by niko

fix component Children map error (#368)

parent 268cbe69
......@@ -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 (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment