Skip to content

Commit

Permalink
children can be null
Browse files Browse the repository at this point in the history
  • Loading branch information
jeessy2 authored and afc163 committed Nov 20, 2019
1 parent 4c3b969 commit 6db8b06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Body/BodyRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function BodyRow<RecordType extends { children?: RecordType[] }>(props: BodyRowP
const rowSupportExpand = expandableType === 'row' && (!rowExpandable || rowExpandable(record));
// Only when row is not expandable and `children` exist in record
const nestExpandable = expandableType === 'nest';
const hasNestChildren = childrenColumnName in record;
const hasNestChildren = childrenColumnName in record && record[childrenColumnName];
const mergedExpandable = rowSupportExpand || nestExpandable;

// =========================== onRow ===========================
Expand Down

0 comments on commit 6db8b06

Please sign in to comment.