Skip to content

Commit 2c87ded

Browse files
committed
chore: Patch check logic to match antd snapshot
1 parent cee2482 commit 2c87ded

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Table.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
284284
(props.expandable &&
285285
internalHooks === INTERNAL_HOOKS &&
286286
(props.expandable as any).__PARENT_RENDER_ICON__) ||
287-
mergedData.some(record => record && record[mergedChildrenColumnName])
287+
mergedData.some(
288+
record => record && typeof record === 'object' && mergedChildrenColumnName in record,
289+
)
288290
) {
289291
return 'nest';
290292
}

0 commit comments

Comments
 (0)