From 3a91e920805454a45d2914dedb1d5ce617de81cc Mon Sep 17 00:00:00 2001 From: EL-R1 <56195379+EL-R1@users.noreply.github.com> Date: Wed, 21 Jun 2023 11:03:50 +0200 Subject: [PATCH] fix: display image send child choice instead of parent --- assets/scripts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/scripts.js b/assets/scripts.js index 213defa..8daca39 100644 --- a/assets/scripts.js +++ b/assets/scripts.js @@ -327,7 +327,7 @@ function addChoices(r) { let index = 0; for (let x of r.choices) { var caption = r.defaultChoiceIndex == index ? '[' + x.text + ']' : x.text; - addItem(ul, caption, 'javascript:choice(' + index + ')', r); + addItem(ul, caption, 'javascript:choice(' + index + ')', x); index++; } }