Fix AI Generation
This commit is contained in:
parent
469a3ebf4a
commit
9cb3abec26
|
@ -121,10 +121,10 @@ export default {
|
||||||
|
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.aiForm.post('/forms/ai/generate').then(response => {
|
this.aiForm.post('/forms/ai/generate').then(response => {
|
||||||
this.useAlert.success(response.data.message)
|
this.useAlert.success(response.message)
|
||||||
this.fetchGeneratedForm(response.data.ai_form_completion_id)
|
this.fetchGeneratedForm(response.ai_form_completion_id)
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.useAlert.error(error.response.data.message)
|
console.error(error)
|
||||||
this.loading = false
|
this.loading = false
|
||||||
this.state = 'default'
|
this.state = 'default'
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue