diff --git a/resources/js/Pages/Time.vue b/resources/js/Pages/Time.vue index 543fd36d..3ad2efee 100644 --- a/resources/js/Pages/Time.vue +++ b/resources/js/Pages/Time.vue @@ -138,6 +138,7 @@ function deleteSelected() { @submit="clearSelectionAndState" :all-selected="selectedTimeEntries.length === timeEntries.length" @select-all="selectedTimeEntries = [...timeEntries]" + @unselect-all="selectedTimeEntries = []" :delete-selected="deleteSelected"> { return !value.find( - (filterTimeEntry) => filterTimeEntry.id === timeEntry.id + (filterTimeEntry) => + filterTimeEntry.id === timeEntry.id || + filterTimeEntry.timeEntries?.find( + (subTimeEntry) => subTimeEntry.id === timeEntry.id + ) ); } );