From 0782dd6989746190c43d3c7c04e45fe1cc69c469 Mon Sep 17 00:00:00 2001 From: colder Date: Fri, 26 Jun 2020 02:36:15 +0800 Subject: [PATCH] fix: remove body row array wrapper --- src/Body/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Body/index.tsx b/src/Body/index.tsx index f246959af..43fbeb3a0 100644 --- a/src/Body/index.tsx +++ b/src/Body/index.tsx @@ -45,7 +45,7 @@ function Body({ rows = data.map((record, index) => { const key = getRowKey(record, index); - return [ + return ( ({ getRowKey={getRowKey} rowExpandable={rowExpandable} childrenColumnName={childrenColumnName} - />, - ]; + /> + ); }); } else { rows = (