mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
fix missing field steps
This commit is contained in:
1 parent
da9266befc
commit
a5615d500d
1 file changed
+2
-2
@@ -686,7 +686,7 @@ export default {
|
||||
return this.minimize || (this.orientation?.includes('landscape') && this.isMobile && parseInt(window.innerHeight) < 550)
|
||||
},
|
||||
currentStepFields () {
|
||||
return this.stepFields[this.currentStep]
|
||||
return this.stepFields[this.currentStep] || []
|
||||
},
|
||||
browserLanguage () {
|
||||
return (navigator.language || navigator.userLanguage || 'en').split('-')[0]
|
||||
@@ -763,7 +763,7 @@ export default {
|
||||
this.isFormVisible = value
|
||||
},
|
||||
currentStepFields (value) {
|
||||
if (!value) {
|
||||
if (isEmpty(value)) {
|
||||
this.currentStep -= 1
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user