fix: grades backend not updating

This commit is contained in:
Sebastian Pravda 2023-02-04 16:39:47 +01:00
parent d54c42ab6f
commit aa58b9d26b
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -93,6 +93,7 @@
on:change={convertGradeToGradeBackend}
bind:grade={gradesLocal[i]}
on:delete={() => {
grades = grades.filter((grade) => grade.subject !== gradesLocal[i].subject);
gradesLocal = gradesLocal.filter((_, index) => index !== i);
}}
/>