adjust validation

This commit is contained in:
Pete Matsyburka
2025-03-29 21:12:22 +02:00
parent 86d2cd93f8
commit 1cae12b728
2 changed files with 36 additions and 15 deletions
+10 -2
View File
@@ -1407,9 +1407,17 @@ export default {
if (data.field_uuid) {
const field = this.fieldsUuidIndex[data.field_uuid]
this.goToStep(this.stepFields.findIndex((fields) => fields.includes(field)), this.autoscrollFields)
if (field) {
const step = this.stepFields.findIndex((fields) => fields.includes(field))
this.showFillAllRequiredFields = true
if (step !== -1) {
this.goToStep(step, this.autoscrollFields)
this.showFillAllRequiredFields = true
}
}
return Promise.reject(new Error('Required field: ' + data.field_uuid))
} else if (data.error) {
const i18nKey = data.error.replace(/\s+/g, '_').toLowerCase()