Skip to content

Commit

Permalink
fix(schema): fix setValidateRule will throw error when use void field (
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang authored Oct 11, 2021
1 parent a5c5b80 commit d752b22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/json-schema/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export const patchStateFormSchema = (
} else {
const isValidatorKey = SchemaValidatorMap[key]
if (isValidatorKey) {
targetState['setValidatorRule'](key, compiled)
targetState['setValidatorRule']?.(key, compiled)
}
}
})
Expand Down

0 comments on commit d752b22

Please sign in to comment.