fixed bug on load

This commit is contained in:
Gerard 2018-10-22 14:36:07 +02:00
parent a010871a7d
commit 409c78ec94
1 changed files with 7 additions and 6 deletions

View File

@ -75,12 +75,13 @@ class Controller {
} }
setClaimDestination(id, claimDestinationFk) { setClaimDestination(id, claimDestinationFk) {
let params = {id: id, claimDestinationFk: claimDestinationFk}; if (claimDestinationFk) {
let query = `claim/api/ClaimEnds/`; let params = {id: id, claimDestinationFk: claimDestinationFk};
this.$http.patch(query, params).then(() => { let query = `claim/api/ClaimEnds/`;
this.$.model.refresh(); this.$http.patch(query, params).then(() => {
this.vnApp.showSuccess(this.$translate.instant('Data saved!')); this.vnApp.showSuccess(this.$translate.instant('Data saved!'));
}); });
}
} }
calculateTotals() { calculateTotals() {