Skip to content

Commit

Permalink
passing assembly param for single input
Browse files Browse the repository at this point in the history
  • Loading branch information
prabh-t committed Oct 14, 2024
1 parent 299f2cd commit f32d99c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/pages/home/SearchVariant.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const SearchVariant = () => {
if (hasMultipleLines(cleanText)) {
promise = submitInputText(cleanText, form.assembly)
} else {
let directQuery = `${QUERY}?search=${encodeURIComponent(cleanText)}`
let directQuery = `${QUERY}?search=${encodeURIComponent(cleanText)}&assembly=${form.assembly}`
if (form.assembly && form.assembly === Assembly.GRCh37) {
// single input uses GRCh38 by default (auto-detect is ignored), unless GRCh37 is specified.
directQuery += `&assembly=${encodeURIComponent(form.assembly)}`
Expand Down

0 comments on commit f32d99c

Please sign in to comment.