Skip to content

Commit

Permalink
fix: filtered word error (#39887)
Browse files Browse the repository at this point in the history
* fix: filtered word error

* Optimize the code
  • Loading branch information
lihansir authored and yoyo837 committed Dec 31, 2022
1 parent 2f4bb11 commit 9baea0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/table/hooks/useFilter/index.tsx
Expand Up @@ -234,15 +234,14 @@ 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,
...col,
},
forceFiltered: col.filtered,
};
return nweItem;
});
}

Expand Down

0 comments on commit 9baea0d

Please sign in to comment.