fix(webapp): fix date select language crash (#9370)

This commit is contained in:
Ulf Gebhardt 2026-03-11 16:45:11 +01:00 committed by GitHub
parent 3af5601132
commit 0df685f372
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -306,7 +306,11 @@ export default {
}
},
async mounted() {
await import(`vue2-datepicker/locale/${this.currentUser.locale}`)
try {
await import(`vue2-datepicker/locale/${this.currentUser.locale}`)
} catch {
await import('vue2-datepicker/locale/en')
}
},
computed: {
...mapGetters({