forked from open-webui/open-webui
fix: config data issue
This commit is contained in:
parent
174c082c69
commit
1d7ca44017
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ async def get_app_config():
|
|||
"version": VERSION,
|
||||
"default_locale": (
|
||||
CONFIG_DATA["ui"]["default_locale"]
|
||||
if "default_locale" in CONFIG_DATA["ui"]
|
||||
if "ui" in CONFIG_DATA and "default_locale" in CONFIG_DATA["ui"]
|
||||
else "en-US"
|
||||
),
|
||||
"images": images_app.state.ENABLED,
|
||||
|
|
Loading…
Reference in a new issue