PMCORE-3295:Performance: Three calls to the same API is launched for Started By Me, In Progress, Completed and Supervising

This commit is contained in:
fabio
2021-09-09 16:23:01 -04:00
parent f53d9c86c7
commit 46af8ad70e

View File

@@ -368,9 +368,6 @@ export default {
if (header === "CASES_TO_REVISE") {
filter = "SUPERVISING";
}
if (header === "CASES_SENT") {
filter = "STARTED";
}
for (i = 0; i < filters.length; i += 1) {
if (filters[i].item === filter) {
filters[i].onClick(filters[i]);
@@ -643,8 +640,6 @@ export default {
onClick: (obj) => {
that.title = obj.title;
that.filterHeader = obj.item;
that.$refs["vueTable"].setPage(1); // Reset the page when change the header filter
that.$refs["vueTable"].getData();
that.filterHeaderObject = obj;
that.random = _.random(0,1000000000);
},