fix(Form): maintain other errors when using setErrors with a path (#1818)

Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
Romain Hamel
2024-06-03 13:59:26 +02:00
committed by GitHub
parent 3ebff4d133
commit 06990beabf

View File

@@ -151,7 +151,6 @@ export default defineComponent({
validate,
errors,
setErrors (errs: FormError[], path?: string) {
errors.value = errs
if (path) {
errors.value = errors.value.filter(
(error) => error.path !== path