Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Nov 9, 2023
2 parents 283246c + 51f3f38 commit dae5f18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/app/graphql/types/queries/typeahead_queries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def therapy_typeahead(query_term:)

return results + secondary_results + tertiary_results
else
return results + secondar_results
return results + secondary_results
end
else
return results
Expand Down
2 changes: 1 addition & 1 deletion server/app/models/therapy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Therapy < ApplicationRecord
has_and_belongs_to_many :assertions
has_and_belongs_to_many :therapy_aliases

validates :ncit_id, uniqueness: true
validates :ncit_id, uniqueness: true, allow_nil: true

def self.url_for(ncit_id:)
if ncit_id.nil?
Expand Down

0 comments on commit dae5f18

Please sign in to comment.