small fixes
This commit is contained in:
parent
0a3a6092f6
commit
83d3eb6991
|
@ -219,7 +219,7 @@ export default {
|
|||
this.playConfetti()
|
||||
}
|
||||
}).catch((error) => {
|
||||
if (error.response.data && error.response.data.message) {
|
||||
if (error.response && error.response.data && error.response.data.message) {
|
||||
this.alertError(error.response.data.message)
|
||||
}
|
||||
this.loading = false
|
||||
|
|
|
@ -109,7 +109,7 @@ export default {
|
|||
this.formInitialHash = this.hashString(JSON.stringify(this.updatedForm.data()))
|
||||
}
|
||||
|
||||
if (!this.updatedForm.notification_settings || Array.isArray(this.updatedForm.notification_settings)) {
|
||||
if (this.updatedForm && (!this.updatedForm.notification_settings || Array.isArray(this.updatedForm.notification_settings))) {
|
||||
this.updatedForm.notification_settings = {}
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue