From 02fc6e96aea7f738c9f292af206c1e4fcf9d3eb1 Mon Sep 17 00:00:00 2001 From: linkodm1 Date: Tue, 13 Aug 2024 16:34:52 -0400 Subject: [PATCH] uncommented code --- .../app/components/management/agents/reports.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/anms-ui/public/app/components/management/agents/reports.vue b/anms-ui/public/app/components/management/agents/reports.vue index b05292b..c6f13cf 100644 --- a/anms-ui/public/app/components/management/agents/reports.vue +++ b/anms-ui/public/app/components/management/agents/reports.vue @@ -53,7 +53,7 @@ export default { this.loading = true; this.tableHeaders = []; this.tableItems = []; - // if (this.reports[this.selected] == undefined) { + if (this.reports[this.selected] == undefined) { this.loading = true; let rpt_name = this.rptts[this.selected].name; let rpt_adm = this.rptts[this.selected].adm; @@ -67,10 +67,10 @@ export default { console.error("reports error", error); console.info("error obj:", error); }); - // } else{ - // this.tableHeaders = this.reportsHeader[this.selected]; - // this.tableItems = this.reports[this.selected]; - // } + } else{ + this.tableHeaders = this.reportsHeader[this.selected]; + this.tableItems = this.reports[this.selected]; + } this.loading = false; }, @@ -78,7 +78,6 @@ export default { let holdHeader = report.shift(); this.tableHeaders = []; for (let i = 0; i < holdHeader.length; i++) { - // this.tableHeaders.push({"key":holdHeader[i], "sortable":true}); this.tableHeaders.push({"key":holdHeader[i]}); } for (let item of report) {