1
0
mirror of synced 2024-11-22 05:16:05 +03:00
This commit is contained in:
1on 2020-11-12 10:17:27 +03:00
parent 397fee45a3
commit 57075b2b75
4 changed files with 16 additions and 8 deletions

View File

@ -757,10 +757,14 @@ class ErrorObserverRegistry {
observer.callback(errors);
}
else if (observer.field &&
!Array.isArray(errors) &&
has(errors, observer.field)) {
!Array.isArray(errors)) {
if (has(errors, observer.field)) {
observer.callback(errors[observer.field]);
}
else {
observer.callback([]);
}
}
});
}
}

File diff suppressed because one or more lines are too long

View File

@ -762,10 +762,14 @@
observer.callback(errors);
}
else if (observer.field &&
!Array.isArray(errors) &&
has(errors, observer.field)) {
!Array.isArray(errors)) {
if (has(errors, observer.field)) {
observer.callback(errors[observer.field]);
}
else {
observer.callback([]);
}
}
});
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@retailcrm/vue-formulario",
"version": "0.4.0",
"version": "0.4.1",
"author": "RetailDriverLLC <integration@retailcrm.ru>",
"scripts": {
"build": "npm run build:esm & npm run build:umd & npm run build:iife & wait && echo \"Build complete:\nesm: $(gzip -c dist/formulario.esm.js | wc -c)b gzip\numd: $(gzip -c dist/formulario.umd.js | wc -c)b gzip\nmin: $(gzip -c dist/formulario.min.js | wc -c)b gzip\"",