From c291170d796d311e3c1ba556180e0d4d28f2b011 Mon Sep 17 00:00:00 2001 From: Gregor Vostrak Date: Wed, 9 Oct 2024 17:35:22 +0200 Subject: [PATCH] fix timing problem when updating multiple time entries, fixes #202 --- resources/js/Pages/Time.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/Pages/Time.vue b/resources/js/Pages/Time.vue index 3ad2efee..bbe322b6 100644 --- a/resources/js/Pages/Time.vue +++ b/resources/js/Pages/Time.vue @@ -33,8 +33,8 @@ const { timeEntries, allTimeEntriesLoaded } = storeToRefs(timeEntriesStore); const { updateTimeEntry, fetchTimeEntries, createTimeEntry } = useTimeEntriesStore(); -function updateTimeEntries(ids: string[], changes: Partial) { - useTimeEntriesStore().updateTimeEntries(ids, changes); +async function updateTimeEntries(ids: string[], changes: Partial) { + await useTimeEntriesStore().updateTimeEntries(ids, changes); fetchTimeEntries(); }