From 636086c5332b8aab5c1cc322bef1f3bb446a5add Mon Sep 17 00:00:00 2001 From: Tyler Date: Sun, 17 May 2026 01:55:53 -0700 Subject: Fix Historical Ratios blank render and Earnings History height cutoff Missing semicolon after pts.forEach() prevented ASI, causing a JS syntax error that silently killed all chart and matrix rendering. Also bumped Earnings History iframe height to stop the table from being clipped. Co-Authored-By: Claude Sonnet 4.6 --- components/valuation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/valuation.py b/components/valuation.py index d9b2147..407538e 100644 --- a/components/valuation.py +++ b/components/valuation.py @@ -4341,7 +4341,7 @@ def _render_earnings_history(ticker: str): + "" ) - total_height = 1100 + n_total * 48 + total_height = 1500 + n_total * 52 components.html(doc, height=total_height, scrolling=False) @@ -4674,7 +4674,7 @@ def _render_historical_ratios(ticker: str): ' const yAt=v=>Pt+(1-(v-yMn)/(yMx-yMn))*(H-Pt-Pb);' ' const pts=subj.map((v,i)=>({x:xAt(i),y:v!==null?yAt(v):null,v}));' ' let segs=[],cur=[];' - ' pts.forEach(p=>{if(p.y!==null){cur.push(p);}else{if(cur.length){segs.push(cur);cur=[];}}})' + ' pts.forEach(p=>{if(p.y!==null){cur.push(p);}else{if(cur.length){segs.push(cur);cur=[];}}});' ' if(cur.length)segs.push(cur);' ' const lp=segs.map(seg=>seg.map((p,i)=>(i===0?"M":"L")+p.x.toFixed(1)+" "+p.y.toFixed(1)).join(" ")).join(" ");' ' const fp=pts.find(p=>p.y!==null);' -- cgit v1.3-2-g0d8e