fix: show console error if course creation fails

This commit is contained in:
Jannat Patel
2026-02-10 10:55:59 +05:30
parent 332334b556
commit 70872857d1
2 changed files with 5 additions and 3 deletions
@@ -127,6 +127,7 @@ const saveCourse = (close: () => void = () => {}) => {
},
onError(err: any) {
toast.error(cleanError(err.messages?.[0]))
console.error(err)
},
}
)
@@ -154,6 +155,6 @@ onBeforeUnmount(() => {
})
watch(show, () => {
capture('course_form_opened')
if (show.value) capture('course_form_opened')
})
</script>