From 2e4ce1740c88d3f57164525740ebc8c61502b96e Mon Sep 17 00:00:00 2001 From: Jacob Pierce Date: Fri, 14 Jun 2024 11:41:55 -0700 Subject: [PATCH] use outer scope `id` to be sure we're using originl val --- kolibri/plugins/coach/assets/src/composables/useQuizCreation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kolibri/plugins/coach/assets/src/composables/useQuizCreation.js b/kolibri/plugins/coach/assets/src/composables/useQuizCreation.js index e33a224008a..91e30294d11 100644 --- a/kolibri/plugins/coach/assets/src/composables/useQuizCreation.js +++ b/kolibri/plugins/coach/assets/src/composables/useQuizCreation.js @@ -324,7 +324,7 @@ export default function useQuizCreation() { } return ExamResource.saveModel({ id, data: finalQuiz }).then(exam => { - if (!get(_quiz).id) { + if (!id) { updateQuiz({ id: exam.id }); } return exam;