fix: comment empty children

pull/2365/head^2
tanjinzhou 2020-06-08 17:41:29 +08:00
parent 1e35976bd1
commit 3a13c60d59
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ const Comment = {
return ( return (
<div class={prefixCls}> <div class={prefixCls}>
{comment} {comment}
{children ? this.renderNested(prefixCls, children) : null} {children && children.length ? this.renderNested(prefixCls, children) : null}
</div> </div>
); );
}, },