fix: no error dropped while course creation failed
This commit is contained in:
@@ -91,7 +91,7 @@ const onCreateCourseSubmit = async (event: FormSubmitEvent<CreateCourseSchema>)
|
|||||||
} else {
|
} else {
|
||||||
toast.add({
|
toast.add({
|
||||||
title: '创建失败',
|
title: '创建失败',
|
||||||
description: '未知错误',
|
description: res.msg || '未知错误',
|
||||||
color: 'red',
|
color: 'red',
|
||||||
icon: 'i-tabler-alert-triangle',
|
icon: 'i-tabler-alert-triangle',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user