From 1b2b247a0099b7090cb3c7bf719b832f241acbee Mon Sep 17 00:00:00 2001 From: Marcella Maki Date: Mon, 24 Jun 2024 16:00:36 -0400 Subject: [PATCH] Fix mis-match condition in replacement question array --- .../assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue index 6b13754aec..d453790c8b 100644 --- a/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue +++ b/kolibri/plugins/coach/assets/src/views/plan/CreateExamPage/ReplaceQuestions.vue @@ -251,7 +251,7 @@ } function toggleInReplacements(question) { - const replacementIds = replacements.value.map(q => q.id); + const replacementIds = replacements.value.map(q => q.item); if (replacementIds.includes(question.item)) { replacements.value = replacements.value.filter(q => q.item !== question.item); } else {