develop update #3

Merged
desea merged 39 commits from AkkomaGang/akkoma-fe:develop into develop 2022-11-12 22:02:17 +00:00
Showing only changes of commit 0770981a20 - Show all commits

View file

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