Commit abd2dd8d authored by Liu Yue's avatar Liu Yue Committed by niko

fix React.cloneElement in component DescriptionList (#1428)

parent d4d49bb0
...@@ -22,7 +22,7 @@ const DescriptionList = ({ ...@@ -22,7 +22,7 @@ const DescriptionList = ({
<div className={clsString} {...restProps}> <div className={clsString} {...restProps}>
{title ? <div className={styles.title}>{title}</div> : null} {title ? <div className={styles.title}>{title}</div> : null}
<Row gutter={gutter}> <Row gutter={gutter}>
{React.Children.map(children, child => React.cloneElement(child, { column }))} {React.Children.map(children, child => child ? React.cloneElement(child, { column }) : child)}
</Row> </Row>
</div> </div>
); );
......
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