Skip to content

Commit

Permalink
fix: param mapping causing target names to resolve incorrectly
Browse files Browse the repository at this point in the history
  • Loading branch information
logaretm committed May 13, 2020
1 parent 7902828 commit fb77dc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/validate.ts
Expand Up @@ -181,8 +181,8 @@ function _getRuleTargets(
const names: Record<string, string> = {};
let ruleConfig = field.rules[ruleName];
if (!Array.isArray(ruleConfig) && isObject(ruleConfig)) {
ruleConfig = params.map((param: any) => {
return ruleConfig[param.name];
ruleConfig = params.map(param => {
return ruleConfig[param];
});
}

Expand Down

0 comments on commit fb77dc6

Please sign in to comment.