diff --git a/app/javascript/submission_form/form.vue b/app/javascript/submission_form/form.vue index 59dbb551..2fe9900f 100644 --- a/app/javascript/submission_form/form.vue +++ b/app/javascript/submission_form/form.vue @@ -383,10 +383,7 @@ export default { await stepPromise() - return fetch(this.submitPath, { - method: 'POST', - body: new FormData(this.$refs.form) - }).then(response => { + this.saveStep().then(response => { const nextStep = this.stepFields[this.currentStep + 1] if (nextStep) { diff --git a/app/views/submissions/show.html.erb b/app/views/submissions/show.html.erb index 460f2537..c85e2e22 100644 --- a/app/views/submissions/show.html.erb +++ b/app/views/submissions/show.html.erb @@ -21,11 +21,12 @@