diff --git a/packages/app/control/src/app/(app)/(home)/top-apps/_components/apps.tsx b/packages/app/control/src/app/(app)/(home)/top-apps/_components/apps.tsx index 46c975745..3b62f6a73 100644 --- a/packages/app/control/src/app/(app)/(home)/top-apps/_components/apps.tsx +++ b/packages/app/control/src/app/(app)/(home)/top-apps/_components/apps.tsx @@ -9,10 +9,10 @@ import { LoadingAppCard, } from '@/app/(app)/_components/apps/card/horizontal'; -import { api } from '@/trpc/client'; import { Button } from '@/components/ui/button'; -import { Info, Loader2 } from 'lucide-react'; import { Card } from '@/components/ui/card'; +import { api } from '@/trpc/client'; +import { Info, Loader2 } from 'lucide-react'; export const TopApps = () => { return ( @@ -30,7 +30,7 @@ const Apps = () => { const [apps, { hasNextPage, fetchNextPage, isFetchingNextPage }] = api.apps.list.public.useSuspenseInfiniteQuery( { - page_size: 10, + page_size: 20, }, { getNextPageParam: lastPage => @@ -53,9 +53,20 @@ const Apps = () => { return ( - {items.map(app => ( - - ))} + + {items.map(app => { + if (!app) return null; + return ( + + ); + })} {hasNextPage && (