0
0
Fork 0

Move default value assignment

This commit is contained in:
William Buezas 2024-04-09 09:14:41 -03:00
parent 196679b9e9
commit 0941d74d52
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ const generateYears = () => {
const now = Date.vnNew();
const maxYear = now.getFullYear() + 1;
return Array.from({ length: 5 }, (_, i) => String(maxYear - i));
return Array.from({ length: 5 }, (_, i) => String(maxYear - i)) || [];
};
const absenceTypeList = ref([]);
@ -142,7 +142,7 @@ const yearList = ref(generateYears());
<VnSelectFilter
:label="t('Year')"
v-model="selectedYear"
:options="yearList || []"
:options="yearList"
dense
outlined
rounded
@ -156,7 +156,7 @@ const yearList = ref(generateYears());
<VnSelectFilter
:label="t('Contract')"
v-model="selectedBusinessFk"
:options="contractList || []"
:options="contractList"
option-value="businessFk"
option-label="businessFk"
dense