Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
guitavano committed Feb 2, 2024
1 parent cc6e8a9 commit ef7834a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions islands/ShowMore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ export default function ShowMore({ pageInfo, layout, platform }: Props) {

const handleLoadMore = async () => {
loading.value = true;
if(!pageInfo.showMore) return;
if (!pageInfo.showMore) return;
// Figure out a better way to type this loader
// deno-lint-ignore no-explicit-any
const invokePayload: any = {
key: pageInfo.showMore,
props: {
count: pageInfo.recordPerPage || 12,
nextPage: window.location.origin + window.location.pathname + nextPage.value,
},
};
key: pageInfo.showMore,
props: {
count: pageInfo.recordPerPage || 12,
nextPage: window.location.origin + window.location.pathname +
nextPage.value,
},
};
const page = await invoke(invokePayload) as ProductListingPage | null;
loading.value = false;
console.log(page);
Expand Down

0 comments on commit ef7834a

Please sign in to comment.