This commit is contained in:
Laurent
2025-03-03 17:29:39 +01:00
parent a116072a08
commit 180b88fb2b

View File

@@ -8,7 +8,7 @@
const calendar = new Calendar();
const monthYear = ref("");
const dates = ref([]);
const dates = ref([] as (number | null)[]);
onMounted(() => {
setupCalendar();
@@ -56,7 +56,7 @@
</div>
<div class="day-picker">
<div v-for="day in dates" :key="day" :class="{'item': day !== null}">
<div v-for="(day, index) in dates" :key="day ?? `null-${index}`" :class="{'item': day !== null}">
{{ day }}
</div>
</div>