Skip to content

Commit

Permalink
fix: search (#3051)
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Bob authored Jul 24, 2024
1 parent 2983b75 commit 4715ae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/avo/search_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def search_resource(resource)
query: resource.query_scope
).handle

results_count, results = parse_results(query)
results_count, results = parse_results(query, resource)

header = resource.plural_name

Expand Down Expand Up @@ -205,7 +205,7 @@ def search_results_count(resource)
end
end

def parse_results(query)
def parse_results(query, resource)
# When using custom search services query should return an array of hashes
if query.is_a?(Array)
# Apply highlight
Expand Down

0 comments on commit 4715ae9

Please sign in to comment.