Skip to content

Commit

Permalink
Dev (#447)
Browse files Browse the repository at this point in the history
* fix: use correct indication attribute name (#408)

* fix: add URL cites back (#409)

* add release information component for footer

* run prettier

* cleanup: make about links consistent (#413)

* make footer no longer sticky

* fix: correct source versioning (#421)

* fix: clean up GtoP import (#419)

* fix: use latest GO address (#424)

* feat: bump drugbank version (#422)

* feat: alphabetize sources

* refactor: alphabetize sources

* style: running prettier to prettify the sort data function

* fix: sort on pmid and source columns

* feat: add sources to interaction page

* feat: reduce precision of interaction score on interaction page to 2 decimal places

* fix: fix typo (#444)

* fix: do not allow search submit if no terms entered (#446)

---------

Co-authored-by: James Stevenson <james.stevenson@nationwidechildrens.org>
Co-authored-by: Adam Coffman <acoffman@wustl.edu>
  • Loading branch information
3 people authored Oct 19, 2023
1 parent 4489794 commit 0899569
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions client/src/components/Shared/SearchBar/SearchBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ const SearchBar: React.FC<SearchBarProps> = ({ handleSubmit }) => {
}
};
const handleSearchClick = () => {
if (selectedOptions?.length === 0) {
return;
}
state.searchTerms = selectedOptions.map((option) => option.suggestion);
handleSubmit();
};
Expand Down
4 changes: 2 additions & 2 deletions server/app/graphql/resolvers/genes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class Resolvers::Genes < GraphQL::Schema::Resolver

# TODO: search filters (Clinically Actionable, Druggable Genome, Drug Resistance)

# gene claim catagory by name
option(:gene_claim_catagory, type: [String], description: "Filtering on gene claim catagory name.") do |scope, values|
# gene claim category by name
option(:gene_claim_category, type: [String], description: "Filtering on gene claim category name.") do |scope, values|
scope.joins(gene_claims: :gene_claim_categories).where('gene_claim_categories.name IN (?)', values)
end

Expand Down

0 comments on commit 0899569

Please sign in to comment.