diff --git a/resources/ts/Components/Pages/RecordsPage.tsx b/resources/ts/Components/Pages/RecordsPage.tsx index c43adbc91..8ecffb76c 100644 --- a/resources/ts/Components/Pages/RecordsPage.tsx +++ b/resources/ts/Components/Pages/RecordsPage.tsx @@ -303,7 +303,7 @@ export default abstract class RecordsPage< onTablePageChange(event: CustomEvent) { const {pageSize, action} = event.detail; this.currentPageSize = pageSize; - const currentPage = this.currentPage; + const {currentPage} = this; match(action) .with('first', () => (this.currentPage = 1)) .with('previous', () => (this.currentPage--)) @@ -311,7 +311,6 @@ export default abstract class RecordsPage< .with('last', () => (this.currentPage = this.lastPage)) .with('current', () => {}) .run(); - console.log('onTablePageChange', event.detail); if (currentPage !== this.currentPage) { this.refreshRecords = true; m.redraw();