PMCORE-3279:Solve error when unpausing a case

This commit is contained in:
fabio
2021-09-07 14:16:02 -04:00
parent cb7933114a
commit 4643c21261

View File

@@ -592,11 +592,16 @@ export default {
* @param {object} data
*/
onClickUnpause(data) {
Api.cases.unpause(data.row).then((response) => {
if (response.statusText === "OK") {
this.$refs["vueTable"].getData();
}
});
let that = this;
Api.cases.unpause(data.row)
.then((response) => {
if (response.statusText === "OK") {
that.$refs["vueTable"].getData();
}
})
.catch((error) => {
that.showAlert(error.response.data.error.message, 'danger');
});
},
/**
* Claim case