Skip to content

Commit e001b9c

Browse files
committed
Refactor row selection handling to modify existing row object instead of creating a new one
1 parent eee7735 commit e001b9c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/renderer/form-record-list.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,8 +775,9 @@ export default {
775775
return;
776776
}
777777

778-
const newRow = { ...row, selectedRowsIndex: index };
779-
updatedSelection.push(newRow);
778+
// eslint-disable-next-line no-param-reassign
779+
row.selectedRowsIndex = index;
780+
updatedSelection.push(row);
780781

781782
if (occurrences === 1) {
782783
keyCounts.delete(rowKey);

0 commit comments

Comments
 (0)