Fix TypeScript error in Webamp renderInto call (#1340)

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 <noreply@anthropic.com>
This commit is contained in:
Jordan Eldredge 2026-01-01 15:19:31 -08:00 committed by GitHub
parent bce845962f
commit 54dbe369d4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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