Fix error message not being displayed

This commit is contained in:
Björn Fromme
2022-12-13 17:53:04 +01:00
parent 3f368a7946
commit 205f59b8f2
@@ -454,13 +454,11 @@
this.dirty = false this.dirty = false
}) })
.catch(error => { .catch(error => {
error.response.then(data => {
this.alert({ this.alert({
message: data.message, message: error.message,
success: false, success: false,
}) })
}) })
})
.finally(() => { .finally(() => {
this.endLoading() this.endLoading()
this.$emit('loaded') this.$emit('loaded')