Merge pull request #434 from jellyfin/fix/undefinedSubtitle

fix(item details): fix #433 - undefined country code
This commit is contained in:
Julien Machiels 2020-12-24 00:08:14 +01:00 committed by GitHub
commit 25e9a79752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,7 +410,8 @@ export default Vue.extend({
},
methods: {
...mapActions('backdrop', ['setBackdrop', 'clearBackdrop']),
getLanguageName(code: string) {
getLanguageName(code?: string) {
if (!code) return '';
return langs.where('2B', code).name;
},
getSurroundIcon(layout: string) {