diff --git a/src/views/vacation/VacationManagement.vue b/src/views/vacation/VacationManagement.vue index c207266..7bbbe66 100644 --- a/src/views/vacation/VacationManagement.vue +++ b/src/views/vacation/VacationManagement.vue @@ -347,7 +347,7 @@ async function saveVacationChanges() { const vacationsToDelete = myVacations.value.filter(vac => { if (!vac.date) return false; const vacDate = vac.date.split("T")[0]; - return vacationChanges.delete.includes(vacDate); + return vacationChanges.delete.includes(vacDate) && !vac.receiverId; }); vacationIdsToDelete.push(...vacationsToDelete.map(vac => vac.id)); }