Gracefully handle Survey question with no answers
This commit is contained in:
parent
47d16d3baa
commit
11ff75f778
1 changed files with 4 additions and 0 deletions
|
|
@ -389,6 +389,10 @@ if (typeof Survey === "undefined") {
|
|||
addWidgets: function(qs){
|
||||
hasFile = false;
|
||||
for (var i = 0; i < qs.length; i++) {
|
||||
if (!q || !q.answers) {
|
||||
// gracefully handle q with no answers
|
||||
continue;
|
||||
}
|
||||
var q = qs[i];
|
||||
var verts = '';
|
||||
for (var x in q.answers) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue