Skip to content

Commit

Permalink
Fix: Jump to infinit loading after search federation work (#782)
Browse files Browse the repository at this point in the history
* fix jump to infinit loading

* search result as an object instead of hash in search controller
  • Loading branch information
Bilelkihal authored Oct 26, 2024
1 parent a69658d commit d83e304
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def index
@time = Benchmark.realtime do
results = LinkedData::Client::Models::Class.search(@search_query, params)
@federation_errors = federation_error(results) if federation_error?(results)
results = results[:collection]
results = results.collection


@search_results = aggregate_results(@search_query, results)
Expand All @@ -48,6 +48,7 @@ def json_search
params.delete("ontologies")
end
search_page = LinkedData::Client::Models::Class.search(params[:q], params)

@results = search_page.collection

response = ""
Expand Down

0 comments on commit d83e304

Please sign in to comment.