fix: kleine fix

This commit is contained in:
Joyelle Ndagijimana 2025-04-22 09:04:15 +02:00
parent 8e97c10f65
commit 2de6e680fc

View file

@ -30,7 +30,6 @@
//TODO: remove later //TODO: remove later
const classController = new ClassController(); const classController = new ClassController();
const deletedAssignments = ref<Set<number>>(new Set());
//TODO: replace by query that fetches all user's assignment //TODO: replace by query that fetches all user's assignment
const assignments = asyncComputed(async () => { const assignments = asyncComputed(async () => {
const classes = classesQueryResults?.data?.value?.classes; const classes = classesQueryResults?.data?.value?.classes;
@ -50,7 +49,7 @@
}), }),
); );
return result.flat().filter(a => !deletedAssignments.value.has(a.id)); return result.flat();
}, []); }, []);
async function goToCreateAssignment(): Promise<void> { async function goToCreateAssignment(): Promise<void> {