We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d7ad34c + 7d1cbad commit a647128Copy full SHA for a647128
app/controllers/discourse_workflow/workflow_visualisation_controller.rb
@@ -54,6 +54,9 @@ def network
54
# Links: from each step via its options
55
links = []
56
57
+ # Build a hash of step_id => step to avoid N+1 queries
58
+ steps_by_id = steps.index_by(&:id)
59
+
60
steps.each do |step|
61
step.workflow_step_options.each do |option|
62
target_step = steps_by_id[option.target_step_id]
0 commit comments