Skip to content

Commit

Permalink
Investigate 404
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Zanzini committed Aug 26, 2022
1 parent 1c69def commit 6b6cf0b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/pages/[...slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? ''
Expand Down
5 changes: 0 additions & 5 deletions src/pages/[slug]/p.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ function Page(props: Props) {
serverData,
} = props

// No data was found
if (serverData === null) {
return null
}

const {
product,
product: { seo },
Expand Down

0 comments on commit 6b6cf0b

Please sign in to comment.