mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 12:35:30 +02:00
fix reactivity
This commit is contained in:
parent
9478a2f00d
commit
6ccb1a21b2
1 changed files with 3 additions and 1 deletions
|
|
@ -51,7 +51,9 @@ export function usePagination() {
|
|||
* @param pageSize
|
||||
*/
|
||||
export function useItemsPerPage(pageSize: MaybeRefOrGetter<PageSize>) {
|
||||
const itemsPerPage = computed(() => (pageSize === 'unpaged' ? -1 : (pageSize as number)))
|
||||
const itemsPerPage = computed(() =>
|
||||
toValue(pageSize) === 'unpaged' ? -1 : (toValue(pageSize) as number),
|
||||
)
|
||||
|
||||
return {
|
||||
itemsPerPage: itemsPerPage,
|
||||
|
|
|
|||
Loading…
Reference in a new issue