Skip to content

Commit abf0abe

Browse files
committed
fix: table pagination button works even if page count is 0
1 parent 90ca813 commit abf0abe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

resources/js/components/cedar-ui/table/TablePagination.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const handleSetPage = async (page: number) => {
6060
<span class="dark:text-foreground-0 font-medium">{{ listLength }}</span>
6161
<!-- Results -->
6262
</p>
63-
<ul class="bg-overlay-t divide-d text-foreground-7 border-r-button flex h-(--table-input-height) items-center divide-x rounded-md border leading-tight">
63+
<ul v-if="pageCount" class="bg-overlay-t divide-d text-foreground-7 border-r-button flex h-(--table-input-height) items-center divide-x rounded-md border leading-tight">
6464
<TablePaginationButton
6565
:pageNumber="-1"
6666
:text="'Previous'"

0 commit comments

Comments
 (0)