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 7a7033fb8ecf309cfbd1321cc2e3794ea38e93c0 Author: jcouteau <couteau@codelutin.com> Date: Wed Oct 23 12:07:24 2019 +0200 Fix votes lazy loading --- pollen-ui-riot-js/src/main/web/js/Poll.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pollen-ui-riot-js/src/main/web/js/Poll.js b/pollen-ui-riot-js/src/main/web/js/Poll.js index 5cd74842..6d82ac6c 100644 --- a/pollen-ui-riot-js/src/main/web/js/Poll.js +++ b/pollen-ui-riot-js/src/main/web/js/Poll.js @@ -131,8 +131,11 @@ class Poll { if (this._initPromise) { return voteService.getVotes(this.id, questionId, pagination, this.getPermission()).then((result) => { if (this.voteIsVisible) { - //TODO JC190110-Should use questionId - this.questions[0].voteCount = result.pagination.count; + this.questions.forEach((question) => { + if (question.id === questionId) { + question.voteCount = result.pagination.count; + } + }); } return result; }); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.