Skip to content

Commit

Permalink
fix(jexl): fix edge case where field is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed May 17, 2021
1 parent e1959c9 commit 769d6a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/lib/document.js
Expand Up @@ -216,7 +216,7 @@ export default Base.extend({
const field = this.findField(slug);

if (!field || field.hidden || [undefined, null].includes(field.value)) {
return field.question.isMultipleChoice ? [] : null;
return field?.question.isMultipleChoice ? [] : null;
}

if (field.question.__typename === "TableQuestion") {
Expand Down

0 comments on commit 769d6a8

Please sign in to comment.