diff --git a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/EditMode.svelte b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/EditMode.svelte index 0e651afb..9866fc84 100644 --- a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/EditMode.svelte +++ b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/EditMode.svelte @@ -161,7 +161,7 @@ class="w-[50px]" bind:selected={question.question_type.id} on:change={(e) => { - const id = parseInt(e.target.value); + const id = parseInt(e.target?.value); question.question_type = QUESTION_TYPES.find((q) => q.id === id); question.is_dirty = true; }} @@ -176,7 +176,7 @@