fix human language practice deletion endpoint
Use deleteQuestionSet for practice deletion in HumanLanguagePage so practice cards remove correctly in the question-set based flow. Made-with: Cursor
This commit is contained in:
parent
06af3a97f2
commit
cb2a6843a3
|
|
@ -35,7 +35,7 @@ import {
|
|||
createCourse,
|
||||
createCourseCategory,
|
||||
createHumanLanguageLesson,
|
||||
deletePractice,
|
||||
deleteQuestionSet,
|
||||
deleteQuestion,
|
||||
deleteSubCourse,
|
||||
getHumanLanguageHierarchy,
|
||||
|
|
@ -997,7 +997,7 @@ export function HumanLanguagePage() {
|
|||
if (!practiceTargetDelete) return
|
||||
setDeletingPractice(true)
|
||||
try {
|
||||
await deletePractice(practiceTargetDelete.id)
|
||||
await deleteQuestionSet(practiceTargetDelete.id)
|
||||
toast.success("Practice deleted")
|
||||
setPracticeTargetDelete(null)
|
||||
await loadHierarchy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user