Skip to content

Commit

Permalink
fix timing problem when updating multiple time entries, fixes #202
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Oct 9, 2024
1 parent d9925d6 commit c291170
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/js/Pages/Time.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ const { timeEntries, allTimeEntriesLoaded } = storeToRefs(timeEntriesStore);
const { updateTimeEntry, fetchTimeEntries, createTimeEntry } =
useTimeEntriesStore();
function updateTimeEntries(ids: string[], changes: Partial<TimeEntry>) {
useTimeEntriesStore().updateTimeEntries(ids, changes);
async function updateTimeEntries(ids: string[], changes: Partial<TimeEntry>) {
await useTimeEntriesStore().updateTimeEntries(ids, changes);
fetchTimeEntries();
}
Expand Down

0 comments on commit c291170

Please sign in to comment.