fix form button loading indicator

This commit is contained in:
Alex Turchyn
2023-09-06 22:21:15 +03:00
parent 422639114b
commit 2fab6984ea
+2 -2
View File
@@ -531,14 +531,14 @@ export default {
? this.$refs.currentStep.submit
: () => Promise.resolve({})
stepPromise().then(() => {
stepPromise().then(async () => {
const formData = new FormData(this.$refs.form)
if (this.currentStep === this.stepFields.length - 1) {
formData.append('completed', 'true')
}
this.saveStep(formData).then(async (response) => {
await this.saveStep(formData).then(async (response) => {
if (response.status === 422) {
const data = await response.json()