Commit 1d7ca440 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

fix: config data issue

parent 174c082c
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment