use correct key for languages
ci/woodpecker/push/woodpecker Pipeline was successful Details

fixes #196
This commit is contained in:
FloatingGhost 2022-11-08 12:25:47 +00:00
parent 837c61569a
commit 8713f1870f
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ const GeneralTab = {
return this.$store.getters.mergedConfig.profileVersion
},
translationLanguages () {
const langs = this.$store.state.instance.translationLanguages || []
return (langs || []).map(lang => ({ key: lang.code, value: lang.code, label: lang.name }))
const langs = this.$store.state.instance.supportedTranslationLanguages || { source: [] }
return langs.source.map(lang => ({ key: lang.code, value: lang.code, label: lang.name }))
},
translationLanguage: {
get: function () { return this.$store.getters.mergedConfig.translationLanguage },