We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If the backend is available and we try to navigate to a URL that is not available, we get the following error:
Unhandled Runtime Error Error: Cannot read properties of undefined (reading 'name')
The text was updated successfully, but these errors were encountered:
This is an error in starter if category doesn't exists
file app/(main)/[...category]/page.tsx
export async function generateMetadata({ params }: Props): Promise<Metadata> { const { product_categories } = await getCategoryByHandle( params.category ).catch((err) => { notFound() }) const category = product_categories[0] return { title: `${category?.name} | Acme Store`, description: `${category?.name} category`, } }
Sorry, something went wrong.
Check out my pull
#196
No branches or pull requests
If the backend is available and we try to navigate to a URL that is not available, we get the following error:
Unhandled Runtime Error
Error: Cannot read properties of undefined (reading 'name')
The text was updated successfully, but these errors were encountered: