Skip to content

Commit

Permalink
🐛 fix for failing specs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed Nov 14, 2024
1 parent 7b6a19d commit 13ce199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/thumbnail_path_service_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def call(object)
return collection_thumbnail.local_path.gsub(Hyrax.config.branding_path.to_s, '/branding') if collection_thumbnail

# Fallback to site-wide default collection image if no branding thumbnail
return default_collection_image if object.thumbnail_id.blank?
return default_collection_image if !object.respond_to?(:thumbnail_id) || object.thumbnail_id.blank?

# Retrieve thumbnail if it exists, otherwise use the default collection image
thumb = fetch_thumbnail(object)
Expand Down

0 comments on commit 13ce199

Please sign in to comment.