diff --git a/docker/routlin-dash/app/factory.py b/docker/routlin-dash/app/factory.py index ad1a47c..4e3aa51 100644 --- a/docker/routlin-dash/app/factory.py +++ b/docker/routlin-dash/app/factory.py @@ -472,7 +472,8 @@ def collect_form_originals(items, tokens): result[name] = [] elif input_type == 'select' and not value: try: - opts = json.loads(apply_tokens(item.get('options', '[]'), tokens)) + raw_opts = item.get('options', []) + opts = raw_opts if isinstance(raw_opts, list) else json.loads(apply_tokens(raw_opts, tokens)) value = opts[0]['value'] if opts else '' except Exception: pass