Fix form AI creation bug + use gpt4 turbo with Json mode

This commit is contained in:
Julien Nahum
2024-01-29 10:25:00 +01:00
parent 28e55574e6
commit 381824183c
5 changed files with 35 additions and 14 deletions

View File

@@ -280,14 +280,9 @@ export default {
form_slug: response.form.slug
})
this.displayFormModificationAlert(response)
useRouter().push({
name: 'forms-show',
params: {
slug: this.createdForm.slug,
new_form: response.users_first_form
}
})
useRouter().push({ name: 'forms-slug-show-share', params: { slug: this.createdFormSlug, new_form: response.users_first_form } })
}).catch((error) => {
console.error(error)
if (error.response && error.response.status === 422) {
this.validationErrorResponse = error.response
this.showValidationErrors()