Skip to content
New issue

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

bug: in production - crashes if no recipes on redirect to dashboard #251

Closed
JoarHansson opened this issue Nov 19, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@JoarHansson
Copy link
Collaborator

for example if you have one recipe left and delete it - you get redirected to dashboard and get this error displayed on the screen:

Application error: a client-side exception has occurred (see the browser console for more information).

This shows in the server console:

TypeError: Cannot read properties of undefined (reading 'title')
    at P (/app/.next/server/app/dashboard/page.js:1:18498)
    at nj (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:46251)
    at nM (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:47571)
    at nM (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:61546)
    at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64546)
    at nB (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
    at nD (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:66680)
    at nN (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:64853)
    at nB (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:67538)
    at nM (/app/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:12:58560) {
  digest: '28258159'
}
@JoarHansson JoarHansson added the bug Something isn't working label Nov 19, 2024
@sirisayshello
Copy link
Owner

fixed in #270

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants