Browse Source

fix(BasicTable): getSelectRows return duplicate records (#3545)

pull/3549/head
xachary 3 years ago
committed by GitHub
parent
commit
974c1fad7f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/components/Table/src/hooks/useRowSelection.ts

1
src/components/Table/src/hooks/useRowSelection.ts

@ -126,7 +126,6 @@ export function useRowSelection(
const found = allSelectedRows.find(
(item) => parseRowKeyValue(unref(getRowKey), item) === keyValue,
);
found && trueSelectedRows.push(found);
if (found) {
trueSelectedRows.push(found);
} else {

Loading…
Cancel
Save