Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/app/feed/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { parsePageParam } from "@/lib/pagination";
/* eslint-disable react-hooks/purity */
import { Suspense } from "react";
import { createClient } from "@/lib/supabase/server";
Expand All @@ -24,7 +25,7 @@ async function FeedContent({ searchParams }: FeedPageProps) {
const resolvedParams = await searchParams;
const sort = resolvedParams.sort || "hot";
const tag = resolvedParams.tag || undefined;
const page = Number(resolvedParams.page) || 1;
const page = parsePageParam(resolvedParams.page);

const supabase = await createClient();

Expand Down
Loading