Fix AI Generation

This commit is contained in:
Julien Nahum 2024-01-17 11:03:57 +01:00
parent 469a3ebf4a
commit 9cb3abec26
1 changed files with 3 additions and 3 deletions

View File

@ -121,10 +121,10 @@ export default {
this.loading = true
this.aiForm.post('/forms/ai/generate').then(response => {
this.useAlert.success(response.data.message)
this.fetchGeneratedForm(response.data.ai_form_completion_id)
this.useAlert.success(response.message)
this.fetchGeneratedForm(response.ai_form_completion_id)
}).catch(error => {
this.useAlert.error(error.response.data.message)
console.error(error)
this.loading = false
this.state = 'default'
})