Skip to content

Commit

Permalink
Fix wrong manual Style/ correction of 5081aaa
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Dec 14, 2023
1 parent 58874f7 commit c8addbf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/models/manuscript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -417,10 +417,9 @@ def new_chapters
# sections in a manuscript chapter not represented in mampf
def new_sections_in_chapter(chapter)
sections = sections_in_chapter(chapter)
sections.each_with_index
.map do |s, i|
[s["mampf_section"], i + 1, s["description"], s["counter"]]
end
sections = sections.each_with_index.map do |s, i|
[s["mampf_section"], i + 1, s["description"], s["counter"]]
end
sections.select { |s| s.first.nil? }
.map { |s| [s.second, s.third, s.fourth] }
end
Expand Down

0 comments on commit c8addbf

Please sign in to comment.