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 },