mirror of
https://github.com/open-webui/open-webui
synced 2024-11-16 13:40:55 +00:00
fix: config data issue
This commit is contained in:
parent
174c082c69
commit
1d7ca44017
@ -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 New Issue
Block a user