Skip to content

Commit

Permalink
Update indexes_thumbnails_decorator.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed May 31, 2024
1 parent bd7e0e0 commit ddd1655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/services/hyrax/indexes_thumbnails_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ def thumbnail_path
file_path = CollectionResourceIndexer.thumbnail_path_service.call(object)
if object.try(:collection?) && UploadedCollectionThumbnailPathService.uploaded_thumbnail?(object)
UploadedCollectionThumbnailPathService.call(object)
elsif file_path.include?('/branding')
elsif file_path&.include?('/branding')
file_path.gsub(/.*?(\/branding)/, '\1')
else
super
file_path
end
end
end
Expand Down

0 comments on commit ddd1655

Please sign in to comment.