fix missing field steps

This commit is contained in:
Pete Matsyburka
2024-05-10 22:24:44 +03:00
parent da9266befc
commit a5615d500d
+2 -2
View File
@@ -686,7 +686,7 @@ export default {
return this.minimize || (this.orientation?.includes('landscape') && this.isMobile && parseInt(window.innerHeight) < 550) return this.minimize || (this.orientation?.includes('landscape') && this.isMobile && parseInt(window.innerHeight) < 550)
}, },
currentStepFields () { currentStepFields () {
return this.stepFields[this.currentStep] return this.stepFields[this.currentStep] || []
}, },
browserLanguage () { browserLanguage () {
return (navigator.language || navigator.userLanguage || 'en').split('-')[0] return (navigator.language || navigator.userLanguage || 'en').split('-')[0]
@@ -763,7 +763,7 @@ export default {
this.isFormVisible = value this.isFormVisible = value
}, },
currentStepFields (value) { currentStepFields (value) {
if (!value) { if (isEmpty(value)) {
this.currentStep -= 1 this.currentStep -= 1
} }
} }