Skip to content

Commit

Permalink
Fix coupling menu when no coulings are present
Browse files Browse the repository at this point in the history
  • Loading branch information
noracato committed Sep 19, 2024
1 parent 07441e6 commit fd70bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/etm/_scenario_nav.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
%li
%a.dropdown-item.external{ href: "https://docs.energytransitionmodel.com/main/external-coupling", target: "_blank"}
= t('header.coupled_docs')
- if Current.setting.active_couplings.any? { |coupling| COUPLING_GROUP_LABELS.key?(coupling) }
- if Current.setting.active_couplings&.any? { |coupling| COUPLING_GROUP_LABELS.key?(coupling) }
%li.sep-above.category
= t('header.coupled_groups')
- Current.setting.active_couplings.each do |coupling|
Expand Down

0 comments on commit fd70bb8

Please sign in to comment.