This is an automated email from the git hooks/post-receive script. New commit to branch feature/multi-ui in repository pollen. See https://gitlab.nuiton.org/chorem/pollen.git commit 59d513db810cca93db2bd1f3ad8c4513faea0974 Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 11:07:59 2019 +0200 Fix undefined error --- .../src/main/web/tag/poll/EditVote.tag.html | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html index 0ccbf223..9f397532 100644 --- a/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html +++ b/pollen-ui-riot-js/src/main/web/tag/poll/EditVote.tag.html @@ -323,16 +323,18 @@ if (!this.multi) { this.refs.voterName.value = null; } - this.question.choices.forEach(choice => { - let input = this.refs[choice.id + "_voteValue"]; - if (this.question.voteCountingTypeValue.renderType === "text") { - input.value = ""; - } else if (this.question.voteCountingTypeValue.renderType === "select") { - input.forEach(option => {option.selected = false;}); - } else { - input.checked = ""; - } - }); + if (this.question.voteCountingTypeValue) { + this.question.choices.forEach(choice => { + let input = this.refs[choice.id + "_voteValue"]; + if (this.question.voteCountingTypeValue.renderType === "text") { + input.value = ""; + } else if (this.question.voteCountingTypeValue.renderType === "select") { + input.forEach(option => {option.selected = false;}); + } else { + input.checked = ""; + } + }); + } } this.selectedChoiceNb = 0; this.error = null; -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.