mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: [form-item] redundant type assertion (#20300)
This commit is contained in:
@@ -294,7 +294,7 @@ const doValidate = async (rules: RuleItem[]): Promise<true> => {
|
||||
return true as const
|
||||
})
|
||||
.catch((err: FormValidateFailure) => {
|
||||
onValidationFailed(err as FormValidateFailure)
|
||||
onValidationFailed(err)
|
||||
return Promise.reject(err)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user