Skip to content

Commit

Permalink
change detailed reporting to use time entries mass delete endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Oct 8, 2024
1 parent 9f2ac70 commit d3d3a98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions resources/js/Pages/ReportingDetailed.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ const totalPages = computed(() => {
const timeEntriesStore = useTimeEntriesStore();
async function deleteTimeEntries(timeEntries: TimeEntry[]) {
for (const timeEntry of timeEntries) {
await timeEntriesStore.deleteTimeEntry(timeEntry.id);
}
await timeEntriesStore.deleteTimeEntries(timeEntries);
selectedTimeEntries.value = [];
await updateFilteredTimeEntries();
}
Expand Down

0 comments on commit d3d3a98

Please sign in to comment.