From 2d013cdd0b0a0dcf51aa76d870db1b2a03e645f3 Mon Sep 17 00:00:00 2001 From: Christian Pich Date: Thu, 5 Oct 2023 15:00:39 +0200 Subject: [PATCH 1/2] SCRUM-3305 fix sequencer viewer logic on allele section --- apps/main-app/src/hooks/useAllVariants.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/main-app/src/hooks/useAllVariants.js b/apps/main-app/src/hooks/useAllVariants.js index 1c1a9e667..53b25af8c 100644 --- a/apps/main-app/src/hooks/useAllVariants.js +++ b/apps/main-app/src/hooks/useAllVariants.js @@ -11,10 +11,7 @@ function getFullUrl(baseUrl, tableState) { } export default function useAllVariants(geneId, tableState, includeHTP = false) { - const nonHTPCategories = ['allele', 'allele with multiple associated variants', 'allele with one associated variant']; - const url = includeHTP ? - `/api/gene/${geneId}/alleles?` : - `/api/gene/${geneId}/alleles?filter.alleleCategory=${encodeURIComponent(nonHTPCategories.join('|'))}`; + const url = `/api/gene/${geneId}/alleles?` ; return useQuery ([url, tableState], () => { return fetchData(getFullUrl(url, { ...tableState, From f5335a0dd44debcbd14940297a86badf389ffc5f Mon Sep 17 00:00:00 2001 From: Christian Pich Date: Thu, 5 Oct 2023 15:03:16 +0200 Subject: [PATCH 2/2] SCRUM-3305 remove unused argument --- apps/main-app/src/hooks/useAllVariants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/main-app/src/hooks/useAllVariants.js b/apps/main-app/src/hooks/useAllVariants.js index 53b25af8c..177d1cbca 100644 --- a/apps/main-app/src/hooks/useAllVariants.js +++ b/apps/main-app/src/hooks/useAllVariants.js @@ -10,7 +10,7 @@ function getFullUrl(baseUrl, tableState) { return baseUrl + separator + buildTableQueryString(tableState); } -export default function useAllVariants(geneId, tableState, includeHTP = false) { +export default function useAllVariants(geneId, tableState) { const url = `/api/gene/${geneId}/alleles?` ; return useQuery ([url, tableState], () => { return fetchData(getFullUrl(url, {