fallback on error

This commit is contained in:
Vito0912 2024-12-14 18:18:50 +01:00
parent 3e5db7f2bd
commit 7b54c6f66a
No known key found for this signature in database
GPG Key ID: 29A3D509FE70B237

View File

@ -150,10 +150,9 @@ export default {
return years
}
} else {
const currentYear = new Date().getFullYear();
return [{ value: currentYear, text: currentYear.toString() }]
}
// Fallback on error
return [{ value: this.yearInReviewYear, text: this.yearInReviewYear.toString() }]
},
},
beforeMount() {