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:
Yared Yemane 2026-04-08 01:59:07 -07:00
parent 06af3a97f2
commit cb2a6843a3

View File

@ -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()