From 7fb17aaf1833101ecdee1bc16afd1f5d2087498c Mon Sep 17 00:00:00 2001 From: imedina Date: Fri, 10 Jan 2025 01:49:26 +0000 Subject: [PATCH] wc: add Variant Browser to primary bar --- .../commons/layout/layout-primary-bar.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/webcomponents/commons/layout/layout-primary-bar.js b/src/webcomponents/commons/layout/layout-primary-bar.js index 59c6200c0..f1779283d 100644 --- a/src/webcomponents/commons/layout/layout-primary-bar.js +++ b/src/webcomponents/commons/layout/layout-primary-bar.js @@ -60,9 +60,10 @@ export default class LayoutPrimaryBar extends LitElement { renderStudiesDropdown() { if (this.opencgaSession?.projects?.length > 0) { // Note: in the study selection we only display projects with at least one study - const visibleProjects = this.opencgaSession.projects.filter(project => { - return project?.studies?.length > 0; - }); + const visibleProjects = this.opencgaSession.projects + .filter(project => { + return project?.studies?.length > 0; + }); return html`