[fix] Missing name or bad format management

This commit is contained in:
ljf 2021-08-14 14:38:45 +02:00
parent ed0915cf81
commit 65fc06e3e7

View file

@ -2152,7 +2152,7 @@ def _get_app_config_panel(app_id):
for key, value in panels:
panel = {
"id": key,
"name": value["name"],
"name": value.get("name", ""),
"sections": [],
}
@ -2165,7 +2165,7 @@ def _get_app_config_panel(app_id):
for section_key, section_value in sections:
section = {
"id": section_key,
"name": section_value["name"],
"name": section_value.get("name", ""),
"options": [],
}