Skip to content

Commit

Permalink
Ugh...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Oct 4, 2024
1 parent ac382b1 commit 63c09cf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/galaxy/tools/parameters/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,13 @@ def populate_state_async(
incoming[input_name] = [int(v) for v in value]
else:
incoming[input_name] = value
elif input.type == "text":
# see behavior of tools in test_tools.py::test_null_to_text_tools
# these parameters act as empty string in this context
if value is None and not input.optional:
incoming[input_name] = ""
else:
incoming[input_name] = value
else:
incoming[input_name] = value

Expand Down

0 comments on commit 63c09cf

Please sign in to comment.