Fix Frontend
This commit is contained in:
+2
-4
@@ -19,9 +19,7 @@ export default class LogMisurazioni extends Vue {
|
||||
rowData = [];
|
||||
|
||||
async mounted(){
|
||||
this.currentPage = 0;
|
||||
this.totalPages = await awaiter(underTheHoodService.GetHistorySheetsCount()) / this.itemsPerPage;
|
||||
this.getLogs();
|
||||
this.reload();
|
||||
}
|
||||
|
||||
@Watch("currentPage", { deep: true })
|
||||
@@ -33,7 +31,7 @@ export default class LogMisurazioni extends Vue {
|
||||
|
||||
async reload(){
|
||||
this.currentPage = 0;
|
||||
this.totalPages = await awaiter(underTheHoodService.GetHistorySheetsCount());
|
||||
this.totalPages = await awaiter(underTheHoodService.GetHistorySheetsCount()) / this.itemsPerPage;
|
||||
this.getLogs();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user