diff --git a/app/services/hyrax/thumbnail_path_service_decorator.rb b/app/services/hyrax/thumbnail_path_service_decorator.rb index e9dc57167..d9bb8ec36 100644 --- a/app/services/hyrax/thumbnail_path_service_decorator.rb +++ b/app/services/hyrax/thumbnail_path_service_decorator.rb @@ -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)