mirror of
https://github.com/tencentmusic/supersonic.git
synced 2026-04-20 13:44:19 +08:00
[fix][headless-fe] Property 'nameEn' does not exist on type 'ColumnType'.
This commit is contained in:
@@ -420,7 +420,7 @@ const ChatItem: React.FC<Props> = ({
|
||||
if (!!queryResults) {
|
||||
const exportData = queryResults.map(item => {
|
||||
return Object.keys(item).reduce((result, key) => {
|
||||
const columnName = queryColumns?.find(column => column.nameEn === key)?.name || key;
|
||||
const columnName = queryColumns?.find(column => column.name === key)?.name || key;
|
||||
result[columnName] = item[key];
|
||||
return result;
|
||||
}, {});
|
||||
|
||||
Reference in New Issue
Block a user