Skip to content

Commit

Permalink
use outer scope id to be sure we're using originl val
Browse files Browse the repository at this point in the history
  • Loading branch information
nucleogenesis committed Jun 14, 2024
1 parent 8b83761 commit 7f4614c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7f4614c

Please sign in to comment.