We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c3894 commit 511765aCopy full SHA for 511765a
package.json
@@ -72,7 +72,7 @@
72
"dependencies": {
73
"@babel/runtime": "^7.10.1",
74
"classnames": "2.x",
75
- "rc-select": "~14.8.0",
+ "rc-select": "~14.9.0",
76
"rc-tree": "~5.7.0",
77
"rc-util": "^5.16.1"
78
}
src/hooks/useFilterTreeData.ts
@@ -38,7 +38,7 @@ export default (
38
39
40
function dig(list: DefaultOptionType[], keepAll: boolean = false) {
41
- return list.reduce((total, dataNode) => {
+ return list.reduce<DefaultOptionType[]>((total, dataNode) => {
42
const children = dataNode[fieldChildren];
43
44
const match = keepAll || filterOptionFunc(searchValue, fillLegacyProps(dataNode));
0 commit comments