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(); }