Skip to content

Commit

Permalink
fix(react): fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Jun 1, 2021
1 parent 6d8b1f2 commit f7fdbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/shared/connect.ts
Expand Up @@ -20,8 +20,8 @@ export function mapProps<T extends JSXComponent>(
} else {
each(mapper, (to, extract) => {
const extractValue = FormPath.getIn(field, extract)
const originalValue = FormPath.getIn(props, targetValue)
const targetValue = isStr(to) ? to : (extract as any)
const originalValue = FormPath.getIn(props, targetValue)
if (extract === 'value') {
if (to !== extract) {
delete props.value
Expand Down

0 comments on commit f7fdbcd

Please sign in to comment.