Skip to content

Commit

Permalink
Merge pull request #246 from LD4P/fix_find
Browse files Browse the repository at this point in the history
return results if not a hash
  • Loading branch information
elrayle authored Nov 15, 2019
2 parents 35e8355 + 395fa08 commit a32c172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/prepends/prepended_linked_data/find_term.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def find(id, request_header: {}, language: nil, replacements: {}, subauth: nil,
ph_record.destroy
raise e
end
saved_performance_data || full_results.is_a?(Array) ? full_results : full_results[:results]
saved_performance_data || !full_results.is_a?(Hash) ? full_results : full_results[:results]
end

private
Expand Down

0 comments on commit a32c172

Please sign in to comment.