mirror of
https://github.com/danbulant/Portfolio
synced 2026-06-24 09:01:48 +00:00
fix: grades backend not updating
This commit is contained in:
parent
d54c42ab6f
commit
aa58b9d26b
1 changed files with 1 additions and 0 deletions
|
|
@ -93,6 +93,7 @@
|
||||||
on:change={convertGradeToGradeBackend}
|
on:change={convertGradeToGradeBackend}
|
||||||
bind:grade={gradesLocal[i]}
|
bind:grade={gradesLocal[i]}
|
||||||
on:delete={() => {
|
on:delete={() => {
|
||||||
|
grades = grades.filter((grade) => grade.subject !== gradesLocal[i].subject);
|
||||||
gradesLocal = gradesLocal.filter((_, index) => index !== i);
|
gradesLocal = gradesLocal.filter((_, index) => index !== i);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue