Skip to content

Commit

Permalink
Guard against nil
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanaLMoore committed May 31, 2024
1 parent fb94bd5 commit 24de07c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/indexes_thumbnails_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def thumbnail_path
if object.try(:collection?) && UploadedCollectionThumbnailPathService.uploaded_thumbnail?(object)
UploadedCollectionThumbnailPathService.call(object)
else
CollectionResourceIndexer.thumbnail_path_service.call(object).gsub('/app/samvera', '')
CollectionResourceIndexer.thumbnail_path_service.call(object)&.gsub('/app/samvera', '')
end
end
end
Expand Down

0 comments on commit 24de07c

Please sign in to comment.