Skip to content

Commit c0adb1c

Browse files
committed
fix:copy bug
1 parent f8fd2cc commit c0adb1c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • chat2db-client/src/components/SearchResult/TableBox

chat2db-client/src/components/SearchResult/TableBox/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,10 +319,10 @@ export default function TableBox(props: ITableProps) {
319319
newTableData.forEach((t)=>{
320320
if(t[`${preCode}0No.`] === curOperationRowNo){
321321
const dataLength = Object.keys(t).length;
322-
_data.forEach((item, index) => {
322+
Object.keys(t).forEach((item, index) => {
323323
if(index > dataLength) return
324-
t[`${preCode}${index}${columns[index].name}`] = item || null;
325-
});
324+
t[item] = _data[index] || null;
325+
})
326326
return
327327
}
328328
})

0 commit comments

Comments
 (0)