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

Going to analytics page before anyone answers the survey causes a crash #77

Closed
TheCynosure opened this issue Dec 15, 2019 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@TheCynosure
Copy link
Collaborator

TheCynosure commented Dec 15, 2019

The following crash occurs:

visualizeCurrentData
src/components/SurveyAnalytics/visualizers.js:127
  124 |   )
  125 | }
  126 | if (['checkbox', 'radiogroup', 'dropdown'].includes(question.type)) {
> 127 |   if (!question.analytics.hasOwnProperty(currentSurveyId)){
      | ^  128 |     return;
  129 |   }
  130 |   let data = {

Most likely because the question analytics field is not yet defined.

@TheCynosure TheCynosure added the bug Something isn't working label Dec 15, 2019
@TheCynosure
Copy link
Collaborator Author

Resolved.

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

1 participant