Browse Source

fix: filtered word error (#39887)

* fix: filtered word error

* Optimize the code
pull/39930/head
李瀚 2 years ago
committed by yoyo837
parent
commit
9baea0d05f
  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