From 2553b04bdf7e10a5287d9811e2fbd145623f8027 Mon Sep 17 00:00:00 2001 From: Sean Bao Date: Mon, 4 Jun 2018 17:45:20 +0800 Subject: [PATCH] Fix children empty judgement in Description --- src/components/DescriptionList/Description.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/DescriptionList/Description.js b/src/components/DescriptionList/Description.js index e024796e..3e41c071 100644 --- a/src/components/DescriptionList/Description.js +++ b/src/components/DescriptionList/Description.js @@ -10,7 +10,8 @@ const Description = ({ term, column, className, children, ...restProps }) => { return ( {term &&
{term}
} - {children &&
{children}
} + {children !== null && children !== undefined && +
{children}
} ); }; -- GitLab