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

Error: Cannot read properties of undefined (reading 'myQuery') #116

Open
zwkkk opened this issue Jul 25, 2024 · 1 comment
Open

Error: Cannot read properties of undefined (reading 'myQuery') #116

zwkkk opened this issue Jul 25, 2024 · 1 comment

Comments

@zwkkk
Copy link

zwkkk commented Jul 25, 2024

Uploading 截屏2024-07-25 13.06.22.png…

@zwkkk
Copy link
Author

zwkkk commented Jul 25, 2024

Unhandled Runtime Error
Error: Cannot read properties of undefined (reading 'myQuery')

Source
lib/fetchNews.ts (56:24) @ myQuery

54 | const newsResponse = await res.json();
55 | let news = newsResponse;

56 | if (newsResponse.data.myQuery !== null) {
| ^
57 | news = sortNewsByImage(newsResponse.data.myQuery)
58 | }
59 |
Call Stack
async NewsByCategory
app/news/[category]/page.tsx (26:15)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant