From cac4d9e604092d293ef199329f56e6faef7465a5 Mon Sep 17 00:00:00 2001 From: IlinaGergova Date: Fri, 3 Jan 2025 15:35:41 +0200 Subject: [PATCH] check gene browser query summary variants param * send summary variants ids list if they are less than max family variants, otherwise send null --- src/app/gene-browser/gene-browser.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/app/gene-browser/gene-browser.component.ts b/src/app/gene-browser/gene-browser.component.ts index f5e75972f..020147988 100644 --- a/src/app/gene-browser/gene-browser.component.ts +++ b/src/app/gene-browser/gene-browser.component.ts @@ -336,12 +336,15 @@ export class GeneBrowserComponent implements OnInit, OnDestroy { } private get requestParams(): Record { + const summaryVariantsIdsToSend = + this.summaryVariantsArrayFiltered.summaryAlleleIds.length < this.maxFamilyVariants ? + this.summaryVariantsArrayFiltered.summaryAlleleIds : null; return { ...this.summaryVariantsFilter.queryParams, geneSymbols: [this.selectedGene.geneSymbol], datasetId: this.selectedDatasetId, regions: this.selectedGene.getRegionString(...this.summaryVariantsFilter.selectedRegion), - summaryVariantIds: this.summaryVariantsArrayFiltered.summaryAlleleIds, + summaryVariantIds: summaryVariantsIdsToSend, frequencyScores: [{ metric: this.geneBrowserConfig.frequencyColumn, rangeStart: this.summaryVariantsFilter.minFreq,