Skip to content

Commit 061fa09

Browse files
committed
chore: Use rc-util get/set
1 parent 4a12052 commit 061fa09

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@
5959
},
6060
"dependencies": {
6161
"async-validator": "^3.0.3",
62-
"lodash": "^4.17.4",
63-
"rc-util": "^4.6.0",
62+
"rc-util": "^4.17.0",
6463
"warning": "^4.0.3"
6564
}
6665
}

src/utils/valueUtil.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import setIn from 'lodash/fp/set';
2-
import get from 'lodash/get';
1+
import get from 'rc-util/lib/utils/get';
2+
import set from 'rc-util/lib/utils/set';
33
import {
44
InternalNamePath,
55
NamePath,
@@ -30,7 +30,7 @@ export function setValue(
3030
namePath: InternalNamePath,
3131
value: StoreValue,
3232
): Store {
33-
const newStore = setIn(namePath, value, store);
33+
const newStore = set(store, namePath, value);
3434
return newStore;
3535
}
3636

0 commit comments

Comments
 (0)