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

Unhandled Rejection (TypeError): Cannot read property 'primary_category' of undefined #1

Open
prakritidev opened this issue Oct 3, 2018 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@prakritidev
Copy link
Contributor

`Unhandled Rejection (TypeError): Cannot read property 'primary_category' of undefined
(anonymous function)
src/app/src/containers/_layout/mainLayout.js:32
29 | if(categoryData.data.result.length !== 0) {
30 | this.setState({
31 | categoryData: categoryData.data.result,

32 | primaryCategory: categoryData.data.result[0].primary_category,
33 | });
34 | }
35 | });
View compiled
This screen is visible only in development. It will not appear if the app crashes in production.
Open your browser’s developer console to further inspect this error.`

Found this while changed the getRecent API

@prakritidev prakritidev added the bug Something isn't working label Oct 3, 2018
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