From f32d99ccf029c8ade94b413efcce0ce8b1f0ae2f Mon Sep 17 00:00:00 2001 From: prabhat Date: Mon, 14 Oct 2024 16:12:58 +0100 Subject: [PATCH] passing assembly param for single input --- src/ui/pages/home/SearchVariant.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/pages/home/SearchVariant.tsx b/src/ui/pages/home/SearchVariant.tsx index 0ebdcc1..9c11612 100644 --- a/src/ui/pages/home/SearchVariant.tsx +++ b/src/ui/pages/home/SearchVariant.tsx @@ -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)}`