Commit 2553b04b authored by Sean Bao's avatar Sean Bao Committed by 陈帅

Fix children empty judgement in Description

parent a06e795c
...@@ -10,7 +10,8 @@ const Description = ({ term, column, className, children, ...restProps }) => { ...@@ -10,7 +10,8 @@ const Description = ({ term, column, className, children, ...restProps }) => {
return ( return (
<Col className={clsString} {...responsive[column]} {...restProps}> <Col className={clsString} {...responsive[column]} {...restProps}>
{term && <div className={styles.term}>{term}</div>} {term && <div className={styles.term}>{term}</div>}
{children && <div className={styles.detail}>{children}</div>} {children !== null && children !== undefined &&
<div className={styles.detail}>{children}</div>}
</Col> </Col>
); );
}; };
......
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