From 1992d22a4c3873f9a220589c5891cfcb09c23a0b Mon Sep 17 00:00:00 2001 From: Bruno Perez Date: Tue, 9 Jun 2026 09:41:05 +0200 Subject: [PATCH] fix: restore build broken by the website redesign The redesign merge (#60) left main failing to compile, which turned CI red and blocked the modelparams npm release (it gates on a clean root typecheck). - Drop a duplicated paramGroupColor import in render.ts - Guard the possibly-undefined entry in the scroll-top observer --- src/build/render.ts | 1 - src/client/main.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/render.ts b/src/build/render.ts index 1b280a8..7054cfe 100644 --- a/src/build/render.ts +++ b/src/build/render.ts @@ -7,7 +7,6 @@ import { conditionIcon, modelLabel, paramGroupColor, - paramGroupColor, paramGroupIcon, paramGroupLabel, paramLabel, diff --git a/src/client/main.ts b/src/client/main.ts index 95514f2..d117537 100644 --- a/src/client/main.ts +++ b/src/client/main.ts @@ -365,6 +365,7 @@ function setupScrollTopButton(): void { const observer = new IntersectionObserver( ([entry]) => { + if (!entry) return; btn.classList.toggle("hidden", entry.isIntersecting); btn.classList.toggle("flex", !entry.isIntersecting); },