Skip to content

Commit 6b6cf0b

Browse files
author
Daniel Zanzini
committed
Investigate 404
1 parent 1c69def commit 6b6cf0b

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/pages/[...slug].tsx

-5
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,6 @@ function Page(props: Props) {
6868
const { locale } = useSession()
6969
const searchParams = useSearchParams(props)
7070

71-
// No data was found
72-
if (serverData === null) {
73-
return null
74-
}
75-
7671
const { collection } = serverData
7772
const { page } = searchParams
7873
const title = collection?.seo.title ?? site?.siteMetadata?.title ?? ''

src/pages/[slug]/p.tsx

-5
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ function Page(props: Props) {
3333
serverData,
3434
} = props
3535

36-
// No data was found
37-
if (serverData === null) {
38-
return null
39-
}
40-
4136
const {
4237
product,
4338
product: { seo },

0 commit comments

Comments
 (0)