From cbe88355775ab3ac841cf79521fa9372d56d4ad0 Mon Sep 17 00:00:00 2001 From: Josemi Date: Mon, 16 Dec 2024 18:15:52 +0100 Subject: [PATCH] wc: Fix bug in query to get variant notes #TASK-7267 #TASK-6445 --- src/webcomponents/variant/variant-notes.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webcomponents/variant/variant-notes.js b/src/webcomponents/variant/variant-notes.js index 8699ddf3a..7228b19cc 100644 --- a/src/webcomponents/variant/variant-notes.js +++ b/src/webcomponents/variant/variant-notes.js @@ -99,7 +99,7 @@ export default class VariantNotes extends LitElement { // 2. get notes where the ID of the note is the variant ID or the gene ID this.opencgaSession.opencgaClient.studies() .searchNotes(this.opencgaSession.study.fqn, { - id: `${this.variant.id},${genes.join(",")}`, + id: [this.variant.id, ...genes].filter(Boolean).join(","), }) .then(response => { this.notes = response.responses[0].results || []; @@ -179,13 +179,13 @@ export default class VariantNotes extends LitElement { return html`
-
+

Variant Note

${this.renderNotes("VARIANT")}
-
+

Gene Notes

${this.renderNotes("GENE")}