Poprawki działania paginacji

This commit is contained in:
2022-01-16 01:03:22 +01:00
parent 4c4340863d
commit 297f6c1797
+2 -1
View File
@@ -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 {