Skip to content

Commit

Permalink
Don't populate the embed partial if an embed component is defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Sep 27, 2024
1 parent a5578f3 commit 42ea923
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spotlight/blacklight_configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def blacklight_config
config.view.embed!
# This is blacklight-gallery's openseadragon partial
unless config.view.embed.document_component
config.view.embed.partials ||= ['openseadragon']
config.view.embed.partials ||= ['openseadragon'] unless config.view.embed.embed_component
config.view.embed.document_component = Spotlight::SolrDocumentLegacyEmbedComponent
end
config.view.embed.if = false
Expand Down

0 comments on commit 42ea923

Please sign in to comment.