diff --git a/components/report/listViewModel.ts b/components/report/listViewModel.ts index bdec519..ca46a15 100644 --- a/components/report/listViewModel.ts +++ b/components/report/listViewModel.ts @@ -101,9 +101,17 @@ export class ReportListViewModel extends BaseViewModel { async fetch(force?: boolean): Promise { this.isLoading = true; + + let limit = this.limit; + let offset = this.offset; + if (this.isCalendarView) { + limit = 500; + offset = 0; + } + const result = await this.reportService.fetchReports( - this.limit, - this.offset, + limit, + offset, this.filter, force );