Skip to content

Commit

Permalink
fix comments used before assigned
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Apr 26, 2024
1 parent f9b2a68 commit 69fb6ce
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7708,12 +7708,9 @@ def copy(self, user=None):
old_step.copy_to(new_step, step_mapping, user=user)
copied_workflow.steps = copied_steps

copied_comments = []
for comment in self.comments:
copied_comments.append(comment.copy())

copied_comments = [comment.copy() for comment in self.comments]
steps_by_id = {s.order_index: s for s in copied_workflow.steps}
comments_by_id = {c.order_index: c for c in copied_workflow.comments}
comments_by_id = {c.order_index: c for c in copied_comments}

# copy comment relationships
for old_comment, new_comment in zip(self.comments, copied_comments):
Expand Down

0 comments on commit 69fb6ce

Please sign in to comment.