提交 abd2dd8d 编写于 作者: L Liu Yue 提交者: niko

fix React.cloneElement in component DescriptionList (#1428)

上级 d4d49bb0
......@@ -22,7 +22,7 @@ const DescriptionList = ({
<div className={clsString} {...restProps}>
{title ? <div className={styles.title}>{title}</div> : null}
<Row gutter={gutter}>
{React.Children.map(children, child => React.cloneElement(child, { column }))}
{React.Children.map(children, child => child ? React.cloneElement(child, { column }) : child)}
</Row>
</div>
);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册