diff --git a/src/components/TrainsView/TrainTable.vue b/src/components/TrainsView/TrainTable.vue index 5898e8e..e075004 100644 --- a/src/components/TrainsView/TrainTable.vue +++ b/src/components/TrainsView/TrainTable.vue @@ -297,7 +297,8 @@ export default defineComponent({ }); watch(paginatorPageCount, (value) => { - if (currentPage.value >= value) currentPage.value = paginatorPageCount.value - 1; + if (currentPage.value >= value) + currentPage.value = paginatorPageCount.value - 1 < 0 ? 0 : paginatorPageCount.value - 1; }); return {