react-graphql-github-vanilla
react-graphql-github-vanilla copied to clipboard
property organization will be null in case of errors
I checked the closed issues. This is different.
Here is the link to the code: https://github.com/the-road-to-graphql/react-graphql-github-vanilla/blob/907824d69683629209eac66d6e4a4c1a964dc6a9/src/App.js#L85
The problem is when the error occurs, the data will be null. Therefore, data.organization will throw errors -> function resolveIssuesQuery will throw error -> Not yet catch in the if (errors) line