From 16a0a06021a762d299dd7686dabe91b5d465a6a4 Mon Sep 17 00:00:00 2001 From: Leandro Collares Date: Tue, 18 Jul 2023 11:13:22 -0300 Subject: [PATCH] chore: show only unique rows --- web/src/api/genomics.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/src/api/genomics.js b/web/src/api/genomics.js index 75e62b987..3bc707529 100644 --- a/web/src/api/genomics.js +++ b/web/src/api/genomics.js @@ -1957,13 +1957,8 @@ export const getLocationTable = ( const variantQueries = mutations.map((d) => d.query); - return forkJoin([ - getCumPrevalence(apiurl, pangoQuery, location, totalThreshold), - getCumPrevalenceQueryLoop(apiurl, variantQueries, location, totalThreshold), - ]).pipe( - map(([lineages, variants]) => { - let results = lineages.concat(variants); - // add in the labels and the type (VOC, VOI, etc.) + return getCumPrevalenceQueryLoop(apiurl, variantQueries, location, totalThreshold).pipe( + map(results => { results.forEach((d) => { const filtered = mutations.filter( (mut) =>