PMCORE-2617: Advanced Search - clicking on Jump button when the field is Empty or negative numbers numbers

code style

remove unnused method
This commit is contained in:
Rodrigo Quelca
2020-12-22 14:07:09 +00:00
parent 176add9026
commit e0159296b1
2 changed files with 45 additions and 16 deletions

View File

@@ -423,12 +423,16 @@ export default {
let self = this;
api.cases
.jump(params)
.then(function(data) {
self.$parent.dataCase = params;
self.$parent.page = "XCase";
.then(function(response) {
if (response.data.exists) {
self.$parent.dataCase = params;
self.$parent.page = "XCase";
} else {
self.showAlert(response.data.message, "danger");
}
})
.catch((err) => {
throw new Error(err);
self.showAlert(err.message, "danger");
});
},
/**