fixing submit my_text prefill error.

pull/150/merge^2
iozeey 2 years ago
parent d809bf6684
commit 5e532764fc

@ -686,7 +686,12 @@ export default {
stepPromise().then(async () => { stepPromise().then(async () => {
const emptyRequiredField = this.stepFields.find((fields, index) => { const emptyRequiredField = this.stepFields.find((fields, index) => {
return index < this.currentStep && fields[0].required && (fields[0].type === 'phone' || !this.allowToSkip) && !this.submittedValues[fields[0].uuid] if (['redact', 'my_text'].includes(fields[0].type)) {
fields[0].required = 'false'
return false
} else {
return index < this.currentStep && fields[0].required && (fields[0].type === 'phone' || !this.allowToSkip) && !this.submittedValues[fields[0].uuid]
}
}) })
const formData = new FormData(this.$refs.form) const formData = new FormData(this.$refs.form)

Loading…
Cancel
Save