Skip to content

Commit

Permalink
fix(table): fix childrenColumnName is null error
Browse files Browse the repository at this point in the history
close #5566
  • Loading branch information
chenshuai2144 committed Dec 26, 2022
1 parent 769177f commit 0fb584c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/utils/src/useEditableArray/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ export function editableRowByKey<RecordType>(
},
action: 'update' | 'top' | 'delete',
) {
const { getRowKey, row, data, childrenColumnName } = keyProps;
const { getRowKey, row, data, childrenColumnName = 'children' } = keyProps;
const key = recordKeyToString(keyProps.key)?.toString();

const kvMap = new Map<string, RecordType & { parentKey?: React.Key }>();
Expand Down

0 comments on commit 0fb584c

Please sign in to comment.