From 99447b4987c76fbe818aa584b4ec28383fa80a82 Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Sun, 7 Jun 2026 02:08:50 -0400 Subject: [PATCH] Development --- docker/routlin-dash/app/factory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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