Skip to content

Commit

Permalink
fix(table): dataSource support string list
Browse files Browse the repository at this point in the history
close #7343
  • Loading branch information
chenshuai2144 committed Jul 14, 2023
1 parent 57f273b commit 7b81b4c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/table/src/utils/genProColumnToColumn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,11 @@ export function genProColumnToColumn<T>(
}

let uniqueKey: any;
if (Reflect.has(rowData as any, keyName)) {
if (
typeof rowData === 'object' &&
rowData !== null &&
Reflect.has(rowData as any, keyName)
) {
uniqueKey = rowData[keyName];
const parentInfo = subNameRecord.get(uniqueKey) || [];
rowData[childrenColumnName]?.forEach((item: any) => {
Expand Down

0 comments on commit 7b81b4c

Please sign in to comment.