cancel Vertrag: correct error handling

This commit is contained in:
Alexei Karpenko
2025-07-14 17:01:16 +02:00
parent 1c8ffa786e
commit 4eaf71e5c6
@@ -96,7 +96,7 @@ export default{
? {vertrag_id: this.vertrag_id, person_id: this.person_id}
: Promise.reject({handled: true}))
.then(result => {
this.$api.call(ApiVertrag.cancelVertrag({vertrag_id: this.vertrag_id, person_id: this.person_id}))
return this.$api.call(ApiVertrag.cancelVertrag({vertrag_id: this.vertrag_id, person_id: this.person_id}))
})
.then(result => {
this.resetForm();