Skip to content

Commit 30ffa25

Browse files
committed
fix: assert not null when export to excel
1 parent f8db6f0 commit 30ffa25

File tree

1 file changed

+1
-1
lines changed
  • tyadmin_api_cli/antd_full_templates/src/utils

1 file changed

+1
-1
lines changed

tyadmin_api_cli/antd_full_templates/src/utils/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ export const exportExcelCurrent = (selectedRows, columns, excel_name) => {
895895
txt_list.push(value[i].ty_options_display_txt);
896896
}
897897
value = txt_list.join(',');
898-
} else if (typeof item[c.dataIndex] === 'object') {
898+
} else if (item[c.dataIndex] !== null && typeof item[c.dataIndex] === 'object') {
899899
value = item[c.dataIndex].ty_options_display_txt;
900900
}
901901
result[c.dataIndex] = value;

0 commit comments

Comments
 (0)