From fb37cc392b1122e00592a92aeb6cb3241d52e8d6 Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 23 Jan 2026 23:53:46 +0000 Subject: [PATCH 1/3] Fix the icon and description when technologies is ALL --- src/js/techreport/index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/js/techreport/index.js b/src/js/techreport/index.js index 2b139148..f304a5ab 100644 --- a/src/js/techreport/index.js +++ b/src/js/techreport/index.js @@ -312,9 +312,11 @@ class TechReport { const categories = techInfo && techInfo.category ? techInfo.category.split(', ') : []; DrilldownHeader.setCategories(categories); - DrilldownHeader.setDescription(techInfo.description); - if (techInfo.icon) { - DrilldownHeader.setIcon(techInfo.icon); + if (technology !== 'ALL') { + DrilldownHeader.setDescription(techInfo.description); + if (techInfo.icon) { + DrilldownHeader.setIcon(techInfo.icon); + } } }); } From 3d4231290cb8719c165975a0c8567ee242b3083f Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 23 Jan 2026 23:57:37 +0000 Subject: [PATCH 2/3] Exit early --- src/js/techreport/index.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/js/techreport/index.js b/src/js/techreport/index.js index f304a5ab..75e5ef42 100644 --- a/src/js/techreport/index.js +++ b/src/js/techreport/index.js @@ -300,6 +300,11 @@ class TechReport { getTechInfo() { const technologies = this.filters.app; const technology = technologies.map(encodeURIComponent).join(','); + + if (technology === 'ALL') { + return; + } + const url = `${Constants.apiBase}/technologies?technology=${technology}`; fetch(url) @@ -309,14 +314,11 @@ class TechReport { const categoryListEl = document.getElementsByClassName('category-list')[0]; categoryListEl.innerHTML = ''; - const categories = techInfo && techInfo.category ? techInfo.category.split(', ') : []; DrilldownHeader.setCategories(categories); - if (technology !== 'ALL') { - DrilldownHeader.setDescription(techInfo.description); - if (techInfo.icon) { - DrilldownHeader.setIcon(techInfo.icon); - } + DrilldownHeader.setDescription(techInfo.description); + if (techInfo.icon) { + DrilldownHeader.setIcon(techInfo.icon); } }); } From d950cd9c4fd137d12c5eb59e1e7969e4578f766f Mon Sep 17 00:00:00 2001 From: Barry Pollard Date: Fri, 23 Jan 2026 23:58:16 +0000 Subject: [PATCH 3/3] Restore line --- src/js/techreport/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/techreport/index.js b/src/js/techreport/index.js index 75e5ef42..7ca29342 100644 --- a/src/js/techreport/index.js +++ b/src/js/techreport/index.js @@ -314,6 +314,7 @@ class TechReport { const categoryListEl = document.getElementsByClassName('category-list')[0]; categoryListEl.innerHTML = ''; + const categories = techInfo && techInfo.category ? techInfo.category.split(', ') : []; DrilldownHeader.setCategories(categories); DrilldownHeader.setDescription(techInfo.description);