Skip to content

Commit

Permalink
Merge pull request #275 from scientist-softserv/adding-bug-fix
Browse files Browse the repository at this point in the history
🐛 Handle no file_set_ids property
  • Loading branch information
jeremyf authored Aug 23, 2023
2 parents ecc6e43 + b170a57 commit a86c2e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/presenters/iiif_print/work_show_presenter_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def iiif_viewer?
# by not loading more member_presenters than needed.
def members_include_viewable_image?
all_member_ids = (solr_document.try(:file_set_ids) || solr_document.try(:[], 'file_set_ids_ssim'))
all_member_ids.each do |id|
Array.wrap(all_member_ids).each do |id|
return true if file_type_and_permissions_valid?(member_presenters_for([id]).first)
end
false
Expand Down

0 comments on commit a86c2e5

Please sign in to comment.