From 5b148727bdc20ca23659f29a298e1728d7d204a8 Mon Sep 17 00:00:00 2001 From: Leszek Pietrzak Date: Tue, 23 Oct 2018 15:53:16 +0200 Subject: [PATCH] fix missing choices --- jsapp/js/components/reports.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsapp/js/components/reports.es6 b/jsapp/js/components/reports.es6 index e342c3c327..c9b69d2984 100644 --- a/jsapp/js/components/reports.es6 +++ b/jsapp/js/components/reports.es6 @@ -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) {