From 54dbe369d4e2c59d32938c8f50784f34a99bfa2c Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Thu, 1 Jan 2026 15:19:31 -0800 Subject: [PATCH] Fix TypeScript error in Webamp renderInto call (#1340) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add non-null assertion operator to ref.current when calling webamp.renderInto() to match the pattern used elsewhere in the component and resolve the CI type error: "Argument of type 'HTMLDivElement | null' is not assignable to parameter of type 'HTMLElement'" 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: Claude --- packages/skin-database/app/(modern)/scroll/Webamp.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/skin-database/app/(modern)/scroll/Webamp.tsx b/packages/skin-database/app/(modern)/scroll/Webamp.tsx index f82c053f..2d0e1273 100644 --- a/packages/skin-database/app/(modern)/scroll/Webamp.tsx +++ b/packages/skin-database/app/(modern)/scroll/Webamp.tsx @@ -42,7 +42,7 @@ export default function WebampComponent({ webamp.onClose(closeModal); // ref.current!.style.opacity = "0"; - await webamp.renderInto(ref.current); + await webamp.renderInto(ref.current!); const { width } = outerRef.current!.getBoundingClientRect(); const zoom = width / SCREENSHOT_WIDTH; document