From 7f4614cd6c7d27d8803167723c35fe04939d4d9f 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..db84ccd1b98 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 !== exam.id) { updateQuiz({ id: exam.id }); } return exam;