Skip to content

Commit

Permalink
Fixing user's select in set user vacation
Browse files Browse the repository at this point in the history
  • Loading branch information
maayarosama committed Apr 17, 2024
1 parent 439e493 commit b2c5a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/components/AddUser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
density="comfortable" :rules="requiredRules"></v-select>

<v-select v-model="selectedSupervisor" :items="supervisors" item-title="full_name" item-value="id" label="Team Lead"
return-object density="comfortable" :rules="requiredRules">
return-object density="comfortable" >

<template #append-item v-if="reloadMoreSupervisor">
<VContainer>
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/SetUserVacations.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,9 @@ export default {
onMounted(async () => {
try {
await concatUsers()
selectedUsers.value.push(officeUsers.value[0])
if(officeUsers.value.length > 0){
selectedUsers.value.push(officeUsers.value[0])
}
await getUserBalance()
} catch (error) {
console.error(error)
Expand Down

0 comments on commit b2c5a88

Please sign in to comment.