Phrasen: Bugfix - correct function for multiple categories

This commit is contained in:
cgfhtw
2024-03-20 08:27:26 +01:00
parent 4e6b7a845b
commit 69803cdb0d
+2 -2
View File
@@ -23,8 +23,8 @@ function getValueForLoadedPhrase(category, phrase, params) {
const phrasen = {
loadCategory(category) {
if (Array.isArray(category))
return Promise.all(category.map(cat => this.config.globalProperties
.$fhcApi.factory.phrasen.loadCategory(cat)));
return Promise.all(category.map(this.config.globalProperties
.$p.loadCategory));
if (!loadingModules[category])
loadingModules[category] = this.config.globalProperties
.$fhcApi.factory.phrasen.loadCategory(category)