small fixes

This commit is contained in:
Forms Dev 2023-11-28 15:52:05 +05:30
parent 0a3a6092f6
commit 83d3eb6991
2 changed files with 2 additions and 2 deletions

View File

@ -219,7 +219,7 @@ export default {
this.playConfetti() this.playConfetti()
} }
}).catch((error) => { }).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.alertError(error.response.data.message)
} }
this.loading = false this.loading = false

View File

@ -109,7 +109,7 @@ export default {
this.formInitialHash = this.hashString(JSON.stringify(this.updatedForm.data())) 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 = {} this.updatedForm.notification_settings = {}
} }
}, },