ui: Fix race condition where refresh can occurs before deletion

This commit is contained in:
nemunaire 2023-03-06 12:19:14 +01:00
parent 0b192e4783
commit 51a311f0b9
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@
<button
class="btn btn-sm btn-danger mx-1"
title="Supprimer la note"
on:click={() => { grade.delete(); refresh_grades(w); }}
on:click={() => { grade.delete().then(() => refresh_grades(w)); }}
>
<i class="bi bi-trash"></i>
</button>