diff --git a/client/claim/src/action/index.js b/client/claim/src/action/index.js index 923de4c18..ba1243d91 100644 --- a/client/claim/src/action/index.js +++ b/client/claim/src/action/index.js @@ -75,12 +75,13 @@ class Controller { } setClaimDestination(id, claimDestinationFk) { - let params = {id: id, claimDestinationFk: claimDestinationFk}; - let query = `claim/api/ClaimEnds/`; - this.$http.patch(query, params).then(() => { - this.$.model.refresh(); - this.vnApp.showSuccess(this.$translate.instant('Data saved!')); - }); + if (claimDestinationFk) { + let params = {id: id, claimDestinationFk: claimDestinationFk}; + let query = `claim/api/ClaimEnds/`; + this.$http.patch(query, params).then(() => { + this.vnApp.showSuccess(this.$translate.instant('Data saved!')); + }); + } } calculateTotals() {