diff --git a/frontend/pages/organisation/plantafel.vue b/frontend/pages/organisation/plantafel.vue index 3ac6dfc..d1e81aa 100644 --- a/frontend/pages/organisation/plantafel.vue +++ b/frontend/pages/organisation/plantafel.vue @@ -596,11 +596,17 @@ async function openProfileDetails(profileId) { selectedProfile.value = profile selectedProfileVacationSummary.value = null isProfileDetailsModalOpen.value = true - loadingProfileVacation.value = true const requestId = profileVacationRequestId.value + 1 profileVacationRequestId.value = requestId + if (!profile.user_id) { + loadingProfileVacation.value = false + return + } + + loadingProfileVacation.value = true + try { const from = `${currentVacationYear.value}-01-01` const to = `${currentVacationYear.value}-12-31`