mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-28 13:46:20 +02:00
fallback on error
This commit is contained in:
parent
3e5db7f2bd
commit
7b54c6f66a
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user