Skip to content

Commit

Permalink
Less intrusive fix maybe?
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 4, 2024
1 parent 4aac69a commit d22ed48
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/galaxy/tools/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,12 +517,9 @@ def _populate_state_legacy(
request_context, inputs, incoming, state, errors, prefix="", context=None, check=True, simple_errors=True
):
nested_state = flat_to_nested_state(incoming)
context = ExpressionContext(state, context)
context = ExpressionContext(state, nested_state)
for input in inputs.values():
if input.name not in nested_state:
state[input.name] = input.get_initial_value(request_context, context)
else:
state[input.name] = nested_state[input.name]
state[input.name] = input.get_initial_value(request_context, context)
key = prefix + input.name
group_state = state[input.name]
group_prefix = f"{key}|"
Expand Down

0 comments on commit d22ed48

Please sign in to comment.