Skip to content

Commit 627b00b

Browse files
committed
Address review
1 parent d59b3ed commit 627b00b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ui/src/utils/guiTheme.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ async function applyDynamicCustomization (response) {
8787
vueProps.$config.favicon = jsonConfig?.favicon ?? vueProps.$config.favicon
8888
vueProps.$config.css = response?.css ?? null
8989

90-
vueProps.$localStorage.set('LOCALE', vueProps.$config.defaultLanguage)
91-
loadLanguageAsync(vueProps.$config.defaultLanguage)
90+
if (vueProps.$config.defaultLanguage) {
91+
vueProps.$localStorage.set('LOCALE', vueProps.$config.defaultLanguage)
92+
loadLanguageAsync()
93+
}
9294

9395
await applyStaticCustomization(vueProps.$config.favicon, vueProps.$config.css)
9496
}

0 commit comments

Comments
 (0)