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); },