Skip to content

Commit

Permalink
return results if not a hash
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Nov 15, 2019
1 parent dd87a22 commit 395fa08
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 395fa08

Please sign in to comment.