Skip to content

Commit 7d201b6

Browse files
committed
fix category page crash
1 parent d738a90 commit 7d201b6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

apps/dashboard/src/app/(dashboard)/explore/[category]/page.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
ContractCardSkeleton,
1212
} from "components/explore/contract-card";
1313
import { DeployUpsellCard } from "components/explore/upsells/deploy-your-own";
14-
import { ALL_CATEGORIES, getCategory } from "data/explore";
14+
import { getCategory } from "data/explore";
1515
import type { Metadata } from "next";
1616
import Link from "next/link";
1717
import { notFound } from "next/navigation";
@@ -131,9 +131,3 @@ export default async function ExploreCategoryPage(
131131
</div>
132132
);
133133
}
134-
135-
export async function generateStaticParams() {
136-
return ALL_CATEGORIES.map((category) => ({
137-
params: { category },
138-
}));
139-
}

apps/dashboard/src/data/explore.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,5 +309,3 @@ function isExploreCategory(category: string): category is ExploreCategoryName {
309309
export const EXPLORE_PAGE_DATA = Object.values(CATEGORIES).filter((v) =>
310310
"showInExplore" in v ? v.showInExplore !== false : true,
311311
);
312-
313-
export const ALL_CATEGORIES = Object.values(CATEGORIES).map((v) => v.id);

0 commit comments

Comments
 (0)