fix: assignment verwijderen volledig gefixd
This commit is contained in:
parent
d43db16989
commit
ec36e312fc
3 changed files with 13 additions and 10 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue