Skip to content

Commit

Permalink
FOUR-14158
Browse files Browse the repository at this point in the history
  • Loading branch information
pmPaulis committed Feb 15, 2024
1 parent 0e1b891 commit 01d3cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/renderer/form-requests.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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.data.meta.total;
const dataControls = {
count: `${this.countResponse}`,
showControl: true,
Expand Down
2 changes: 1 addition & 1 deletion src/components/renderer/form-tasks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 01d3cba

Please sign in to comment.