Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
anbraten committed Dec 14, 2023
1 parent 1ec7699 commit 6e3f233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/compositions/usePaginate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export async function usePaginate<T>(getSingle: (page: number) => Promise<T[]>):

export function usePagination<T, S = unknown>(
_loadData: (page: number, arg: S) => Promise<T[] | null>,
isActive: () => boolean,
isActive: () => boolean = () => true,
{ scrollElement: _scrollElement, each: _each }: { scrollElement?: Ref<HTMLElement | null>; each?: S[] } = {},
) {
const scrollElement = _scrollElement ?? ref(document.getElementById('scroll-component'));
Expand Down

0 comments on commit 6e3f233

Please sign in to comment.