diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 0786651e8d99..02d1ec958a4f 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -8364,7 +8364,7 @@ def to_dict(self, view="collection", value_mapper=None, step_details=False, lega # TODO: does this work correctly if outputs are mapped over? label = output_assoc.workflow_output.label if not label: - continue + label = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})" outputs[label] = { "src": "hda", @@ -8376,7 +8376,9 @@ def to_dict(self, view="collection", value_mapper=None, step_details=False, lega for output_assoc in self.output_dataset_collections: label = output_assoc.workflow_output.label if not label: - continue + label = ( + label + ) = f"{output_assoc.workflow_output.output_name} (Step {output_assoc.workflow_output.workflow_step.order_index + 1})" output_collections[label] = { "src": "hdca",