diff --git a/src/components/renderer/form-requests.vue b/src/components/renderer/form-requests.vue index 3a5d1e6bb..c138bd457 100755 --- a/src/components/renderer/form-requests.vue +++ b/src/components/renderer/form-requests.vue @@ -139,7 +139,7 @@ export default { record.status = this.formatStatus(record.status); } this.tableData = response.data; - this.countResponse = Object.keys(this.tableData.data).length; + this.countResponse = this.tableData.meta.total; const dataControls = { count: `${this.countResponse}`, showControl: true, diff --git a/src/components/renderer/form-tasks.vue b/src/components/renderer/form-tasks.vue index 77b247279..f6e9e43f2 100755 --- a/src/components/renderer/form-tasks.vue +++ b/src/components/renderer/form-tasks.vue @@ -152,7 +152,7 @@ export default { .then((response) => { this.showTable = response.data.data.length !== 0; this.tableData = response.data; - this.countResponse = Object.keys(this.tableData.data).length; + this.countResponse = this.tableData.meta.total; this.countOverdue = `${this.tableData.meta.in_overdue}`; tasksDropdown.push(this.countOverdue); this.countInProgress = `${this.tableData.meta.total}`;