Skip to content

Commit

Permalink
Fix broken build
Browse files Browse the repository at this point in the history
  • Loading branch information
typeofweb committed Oct 16, 2023
1 parent e9c6bda commit 12cc8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/(main)/collections/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { notFound } from "next/navigation";
import { type Metadata } from "next";
import { ProductListByCollectionDocument } from "@/gql/graphql";
import { executeGraphQL } from "@/lib/graphql";
import { ProductsList } from "@/ui/components/ProductsList";
import { ProductList } from "@/ui/components/ProductList";

export const generateMetadata = async ({ params }: { params: { slug: string } }): Promise<Metadata> => {
const { collection } = await executeGraphQL(ProductListByCollectionDocument, {
Expand Down Expand Up @@ -32,7 +32,7 @@ export default async function Page({ params }: { params: { slug: string } }) {
return (
<div className="mx-auto max-w-7xl p-8 pb-16">
<h1 className="pb-8 text-xl font-semibold">{name}</h1>
<ProductsList products={products.edges.map((e) => e.node)} />
<ProductList products={products.edges.map((e) => e.node)} />
</div>
);
}

0 comments on commit 12cc8a3

Please sign in to comment.