Skip to content

Commit

Permalink
🐛 Account for Valkyrie ID in location indexer
Browse files Browse the repository at this point in the history
In #extract_id we were receiving an error because
it didn't account for a Valkyrie::ID in its case
statement. This commit adds a case for Valkyrie::ID.
  • Loading branch information
ShanaLMoore committed Apr 24, 2024
1 parent 42eccf4 commit c3386ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/hyrax/location_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def full_label(uri)

def extract_id(obj)
uri = case obj
when String
when String, Valkyrie::ID
URI(obj)
when URI
obj
Expand Down

0 comments on commit c3386ff

Please sign in to comment.