Skip to content

Commit

Permalink
Merge pull request #2041 from kobotoolbox/issue-2040
Browse files Browse the repository at this point in the history
Bugfix: reports JS crash
  • Loading branch information
pmusaraj authored Oct 23, 2018
2 parents 432f098 + 5b14872 commit 9646e12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsapp/js/components/reports.es6
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ class ReportContents extends React.Component {
}
}

if (_type === 'select_one' || _type === 'select_multiple') {
if ((_type === 'select_one' || _type === 'select_multiple') && asset.content.choices) {
let question = asset.content.survey.find(z => z.name === _qn || z.$autoname === _qn);
let resps = reportData[i].data.responses;
if (resps) {
Expand Down

0 comments on commit 9646e12

Please sign in to comment.