fix(Form): invalid errors when using clear by path (#1165)

This commit is contained in:
John Puaoi
2024-01-01 23:34:52 -10:00
committed by GitHub
parent 43b999c88e
commit 97a3975197

View File

@@ -152,7 +152,7 @@ export default defineComponent({
},
clear (path?: string) {
if (path) {
errors.value = errors.value.filter((err) => err.path === path)
errors.value = errors.value.filter((err) => err.path !== path)
} else {
errors.value = []
}