diff --git a/lib/galaxy/tools/parameters/__init__.py b/lib/galaxy/tools/parameters/__init__.py index 9b3eb6f43b36..ef1f5d1a9d8a 100644 --- a/lib/galaxy/tools/parameters/__init__.py +++ b/lib/galaxy/tools/parameters/__init__.py @@ -526,10 +526,10 @@ def _populate_state_legacy( del group_state[:] while True: rep_prefix = "%s_%d" % (key, rep_index) - repeat_min_default = input.default if input.default > input.min else input.min + rep_min_default = input.default if input.default > input.min else input.min if ( not any(incoming_key.startswith(rep_prefix) for incoming_key in incoming.keys()) - and rep_index >= repeat_min_default + and rep_index >= rep_min_default ): break if rep_index < input.max: