We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8fd2cc commit c0adb1cCopy full SHA for c0adb1c
1 file changed
chat2db-client/src/components/SearchResult/TableBox/index.tsx
@@ -319,10 +319,10 @@ export default function TableBox(props: ITableProps) {
319
newTableData.forEach((t)=>{
320
if(t[`${preCode}0No.`] === curOperationRowNo){
321
const dataLength = Object.keys(t).length;
322
- _data.forEach((item, index) => {
+ Object.keys(t).forEach((item, index) => {
323
if(index > dataLength) return
324
- t[`${preCode}${index}${columns[index].name}`] = item || null;
325
- });
+ t[item] = _data[index] || null;
+ })
326
return
327
}
328
})
0 commit comments