diff --git a/next-ui/src/composables/pagination.ts b/next-ui/src/composables/pagination.ts index cd08f641..7c586784 100644 --- a/next-ui/src/composables/pagination.ts +++ b/next-ui/src/composables/pagination.ts @@ -51,7 +51,9 @@ export function usePagination() { * @param pageSize */ export function useItemsPerPage(pageSize: MaybeRefOrGetter) { - const itemsPerPage = computed(() => (pageSize === 'unpaged' ? -1 : (pageSize as number))) + const itemsPerPage = computed(() => + toValue(pageSize) === 'unpaged' ? -1 : (toValue(pageSize) as number), + ) return { itemsPerPage: itemsPerPage,