Skip to content

Commit 7a64fe5

Browse files
committed
fix: table rowSelection error #4889
1 parent 67066e2 commit 7a64fe5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/table/Table.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ const InteralTable = defineComponent<
491491
watch(
492492
() => props.rowSelection,
493493
() => {
494-
rowSelection.value = { ...props.rowSelection };
494+
rowSelection.value = props.rowSelection ? { ...props.rowSelection } : props.rowSelection;
495495
},
496496
{ deep: true, immediate: true },
497497
);

0 commit comments

Comments
 (0)