improved loading of selected date

This commit is contained in:
Kamil Niemczycki 2022-06-03 17:41:27 +02:00
parent 5f02e23f51
commit ea5e626e8a

View File

@ -352,12 +352,14 @@ const form = useForm({
? props.users.data.find(user => user.id === (props.userId ?? props.auth.user.id)) ?? props.users.data[0] ? props.users.data.find(user => user.id === (props.userId ?? props.auth.user.id)) ?? props.users.data[0]
: props.auth.user, : props.auth.user,
from: props.vacationStartDate, from: props.vacationStartDate,
to: null, to: props.vacationStartDate,
vacationType: null, vacationType: null,
comment: null, comment: null,
flowSkipped: false, flowSkipped: false,
}) })
refreshEstimatedDays(form.from, form.to)
const estimatedDays = ref([]) const estimatedDays = ref([])
const vacationTypes = ref([]) const vacationTypes = ref([])