fix: assignment verwijderen volledig gefixd

This commit is contained in:
Joyelle Ndagijimana 2025-04-22 13:09:24 +02:00
parent d43db16989
commit ec36e312fc
3 changed files with 13 additions and 10 deletions

View file

@ -73,11 +73,14 @@ Const {groupProgressMap} = props.useGroupsWithProgress(
const { mutate } = useDeleteAssignmentMutation();
async function deleteAssignment(num: number, clsId: string): Promise<void> {
mutate({
cid: clsId,
an: num,
});
window.location.href = "/user/assignment";
mutate(
{ cid: clsId, an: num },
{
onSuccess: () => {
window.location.href = "/user/assignment";
},
},
);
}
</script>