forked from verdnatura/salix-front
Move default value assignment
This commit is contained in:
parent
196679b9e9
commit
0941d74d52
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue