domain: type fix

This commit is contained in:
axolotle 2023-10-22 17:47:43 +02:00
parent 3cae07970e
commit 66cb855c0c

View file

@ -753,10 +753,10 @@ class DomainConfigPanel(ConfigPanel):
# that can be read by the portal API.
# FIXME remove those from the config panel saved values?
portal_values = form.dict(include=portal_options)
portal_values = form.dict(include=set(portal_options))
portal_settings_path = Path(f"{PORTAL_SETTINGS_DIR}/{self.entity}.json")
portal_settings = {"apps": {}}
portal_settings: dict[str, Any] = {"apps": {}}
if portal_settings_path.exists():
portal_settings.update(read_json(str(portal_settings_path)))