From 6b6cf0be300a79528c0df84d1197d14793e23bd0 Mon Sep 17 00:00:00 2001 From: Daniel Zanzini Date: Fri, 26 Aug 2022 10:49:52 -0300 Subject: [PATCH] Investigate 404 --- src/pages/[...slug].tsx | 5 ----- src/pages/[slug]/p.tsx | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/pages/[...slug].tsx b/src/pages/[...slug].tsx index 59f2ce940..a68e01496 100644 --- a/src/pages/[...slug].tsx +++ b/src/pages/[...slug].tsx @@ -68,11 +68,6 @@ function Page(props: Props) { const { locale } = useSession() const searchParams = useSearchParams(props) - // No data was found - if (serverData === null) { - return null - } - const { collection } = serverData const { page } = searchParams const title = collection?.seo.title ?? site?.siteMetadata?.title ?? '' diff --git a/src/pages/[slug]/p.tsx b/src/pages/[slug]/p.tsx index b314b70c9..1016a102c 100644 --- a/src/pages/[slug]/p.tsx +++ b/src/pages/[slug]/p.tsx @@ -33,11 +33,6 @@ function Page(props: Props) { serverData, } = props - // No data was found - if (serverData === null) { - return null - } - const { product, product: { seo },