Development

This commit is contained in:
Matthew Grotke 2026-06-07 02:08:50 -04:00
parent 76571e3657
commit 99447b4987

View file

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