diff --git a/app/helpers/components_helper.rb b/app/helpers/components_helper.rb index 18d7ca1a8..fdb4843c6 100644 --- a/app/helpers/components_helper.rb +++ b/app/helpers/components_helper.rb @@ -86,6 +86,8 @@ module ComponentsHelper # The / links in the element of the . def render_meta_links(records) render PaginatorComponent.new(records: records, params: params).with_variant(:meta_links) + rescue ActiveRecord::StatementInvalid + # Swallow any exceptions when loading records so that the page load doesn't fail. end def numbered_paginator(records)