fix: config data issue

This commit is contained in:
Timothy J. Baek 2024-03-31 02:27:03 -07:00
parent 174c082c69
commit 1d7ca44017

View file

@ -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,