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

View over time causes crash before survey is finished. #79

Open
TheCynosure opened this issue Dec 15, 2019 · 0 comments
Open

View over time causes crash before survey is finished. #79

TheCynosure opened this issue Dec 15, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@TheCynosure
Copy link
Collaborator

Clicking the view over time button on the analytics page for a question that was used on a past survey will crash the system if no one has answered the survey yet.

visualizeTrendData/data.labels<
src/components/SurveyAnalytics/visualizers.js:70
  67 | console.log(choice_analytics);
  68 | 
  69 | let data = {
> 70 |   labels: dates.map(date => date===analytics[currentSurveyId].expiry ? 'Current Survey' : moment(date).format('MM-DD-YYYY')),
     | ^  71 |   datasets: Object.keys(choice_analytics).map((choice, index) => ({
  72 |     label: choice,
  73 |     data: dates.slice().map(date => {
@TheCynosure TheCynosure added the bug Something isn't working label Dec 15, 2019
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