Skip to content

Commit

Permalink
Merge pull request #3549 from alphagov/fix-sentry-error-undefined-met…
Browse files Browse the repository at this point in the history
…hod-any-for-nil

Fix Sentry error "undefined method `any?' for nil"
  • Loading branch information
unoduetre authored Feb 6, 2025
2 parents ed44dc0 + 9caaf34 commit 85ede52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/worldwide_organisation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
padding: true
} %>

<% if @content_item.corporate_information_pages.any? %>
<% if @content_item.corporate_information_pages.present? %>
<%= render "govuk_publishing_components/components/list", {
visible_counters: true,
items: @content_item.corporate_information_pages
Expand Down

0 comments on commit 85ede52

Please sign in to comment.