diff --git a/app/helpers/iiif_print/iiif_print_helper_behavior.rb b/app/helpers/iiif_print/iiif_print_helper_behavior.rb index 8fb08866..92ca0899 100644 --- a/app/helpers/iiif_print/iiif_print_helper_behavior.rb +++ b/app/helpers/iiif_print/iiif_print_helper_behavior.rb @@ -7,7 +7,7 @@ module IiifPrint::IiifPrintHelperBehavior # rubocop:disable Rails/OutputSafety def render_ocr_snippets(options = {}) snippets = options[:value] - return if snippets.blank? + return if snippets.all?(&:blank?) snippets_content = [content_tag('div', "... #{snippets.first} ...".html_safe,