From 540f6e5852e0713937483e264f2ddef6b29a46f7 Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Thu, 11 Jun 2026 12:13:51 +0930 Subject: [PATCH] Guard against undefined PanelApp evidence entries #1597 The gene grid PanelApp integration iterated over the evidence results list and read confidence_level (via addGeneEvidence and getConfidenceCSS) on each entry. When an entry was undefined, this threw "TypeError: Cannot read properties of undefined (reading 'confidence_level')". Skip falsy entries in the results loop so missing entries are ignored instead of crashing the hover-card rendering. --- variantgrid/static_files/default_static/js/panel_app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/variantgrid/static_files/default_static/js/panel_app.js b/variantgrid/static_files/default_static/js/panel_app.js index cb4102eb6..fc5a5d9fa 100644 --- a/variantgrid/static_files/default_static/js/panel_app.js +++ b/variantgrid/static_files/default_static/js/panel_app.js @@ -66,6 +66,9 @@ function getDivFromPanelAppGeneEvidenceAPIResult(geneSymbol, panelAppEvidenceRes let confidenceCount = {}; for (let i=0 ; i