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 }) => {
return (
<Col className={clsString} {...responsive[column]} {...restProps}>
{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>
);
};
......
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