Skip to content

Commit

Permalink
refactor(conditional): use upper_coordinates method
Browse files Browse the repository at this point in the history
  • Loading branch information
tchak committed Nov 3, 2023
1 parent 082558b commit 532fe46
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%ul.types-de-champ-block{ id: block_id, data: sortable_options }
- @coordinates.each.with_index do |coordinate, i|
= render TypesDeChampEditor::ChampComponent.new(coordinate: coordinate, upper_coordinates: @upper_coordinates + @coordinates.take(i))
- @coordinates.each do |coordinate|
= render TypesDeChampEditor::ChampComponent.new(coordinate: coordinate, upper_coordinates: coordinate.upper_coordinates)

0 comments on commit 532fe46

Please sign in to comment.