From abd2dd8d5acadfbf0cfcf3521f503d0788480b41 Mon Sep 17 00:00:00 2001 From: Liu Yue Date: Fri, 4 May 2018 17:42:24 +0800 Subject: [PATCH] fix React.cloneElement in component DescriptionList (#1428) --- src/components/DescriptionList/DescriptionList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DescriptionList/DescriptionList.js b/src/components/DescriptionList/DescriptionList.js index 73ba989c..382d7e85 100644 --- a/src/components/DescriptionList/DescriptionList.js +++ b/src/components/DescriptionList/DescriptionList.js @@ -22,7 +22,7 @@ const DescriptionList = ({
{title ?
{title}
: null} - {React.Children.map(children, child => React.cloneElement(child, { column }))} + {React.Children.map(children, child => child ? React.cloneElement(child, { column }) : child)}
); -- GitLab