Browse Source

fix: filtered word error (#39887)

* fix: filtered word error

* Optimize the code
pull/39899/head
李瀚 2 years ago
committed by GitHub
parent
commit
80f19614be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      components/table/hooks/useFilter/index.tsx

3
components/table/hooks/useFilter/index.tsx

@ -234,7 +234,7 @@ function useFilter<RecordType>({
.filter(({ key }) => keyList.includes(key))
.map((item) => {
const col = mergedColumns[keyList.findIndex((key) => key === item.key)];
const nweItem = {
return {
...item,
column: {
...item.column,
@ -242,7 +242,6 @@ function useFilter<RecordType>({
},
forceFiltered: col.filtered,
};
return nweItem;
});
}

Loading…
Cancel
Save