WIP Исправил баги ASTRA-53, ASTRA-54, добавил валибацию
This commit is contained in:
@@ -27,3 +27,10 @@ export function checkTypeofObject(obj) {
|
||||
export function checkChangeData(dataInit, dataChange) {
|
||||
return JSON.stringify(dataInit) !== JSON.stringify(dataChange);
|
||||
}
|
||||
|
||||
export function getFieldsNameUnvalidated(form) {
|
||||
const unvalidatedFields = form
|
||||
.getValidationComponents()
|
||||
.filter((el) => !el.validate());
|
||||
return [...new Set(unvalidatedFields.map((field) => field.name))];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user