diff --git a/app/models/communication/block/with_heading_ranks.rb b/app/models/communication/block/with_heading_ranks.rb index ecf3951e58baa0af0ae451103ad9daf4f1ab8963..352011031cfcf83eef6c6a5a1acbb733f80f2c00 100644 --- a/app/models/communication/block/with_heading_ranks.rb +++ b/app/models/communication/block/with_heading_ranks.rb @@ -9,7 +9,7 @@ module Communication::Block::WithHeadingRanks def heading_rank_children return false unless heading_children? - title.present? ? heading_rank_self + 1 : heading_rank_self + heading_rank_self ? heading_rank_self + 1 : heading_rank_base end def heading_children?