Browse Source
fix: filtered word error (#39887)
* fix: filtered word error
* Optimize the code
pull/39899/head
李瀚
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
2 deletions
-
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; |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|