Skip to content

Commit

Permalink
Fix saving workflows with freehand_comments only
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 4, 2024
1 parent a7398df commit 023178d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/galaxy/workflow/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ def order_workflow_steps(steps, comments):
else:
sortable_comments.append(comment)

# consider comments to find normalization position
min_left_comments = min(comment.position[0] for comment in sortable_comments)
min_top_comments = min(comment.position[1] for comment in sortable_comments)
min_left = min(min_left_comments, min_left)
min_top = min(min_top_comments, min_top)
if sortable_comments:
# consider comments to find normalization position
min_left_comments = min(comment.position[0] for comment in sortable_comments)
min_top_comments = min(comment.position[1] for comment in sortable_comments)
min_left = min(min_left_comments, min_left)
min_top = min(min_top_comments, min_top)

# normalize comments by min_left and min_top
for comment_list in [sortable_comments, freehand_comments]:
Expand Down

0 comments on commit 023178d

Please sign in to comment.