Skip to content

Commit 6db8b06

Browse files
jeessy2afc163
authored andcommitted
children can be null
1 parent 4c3b969 commit 6db8b06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Body/BodyRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function BodyRow<RecordType extends { children?: RecordType[] }>(props: BodyRowP
8787
const rowSupportExpand = expandableType === 'row' && (!rowExpandable || rowExpandable(record));
8888
// Only when row is not expandable and `children` exist in record
8989
const nestExpandable = expandableType === 'nest';
90-
const hasNestChildren = childrenColumnName in record;
90+
const hasNestChildren = childrenColumnName in record && record[childrenColumnName];
9191
const mergedExpandable = rowSupportExpand || nestExpandable;
9292

9393
// =========================== onRow ===========================

0 commit comments

Comments
 (0)