Skip to content

Conversation

@captbaritone
Copy link
Owner

Summary

  • Fix TypeScript compilation error that was causing CI to fail
  • Add non-null assertion operator to ref.current when calling webamp.renderInto()

Root Cause

The new Webamp renderInto API expects a non-null HTMLElement parameter, but ref.current has type HTMLDivElement | null. The TypeScript compiler was correctly flagging this as a potential runtime error.

Changes Made

  • Updated packages/skin-database/app/(modern)/scroll/Webamp.tsx line 45
  • Added non-null assertion operator (!) to match the pattern used elsewhere in the component (lines 46, 51)

Test Plan

  • TypeScript compilation passes locally (pnpm run type-check)
  • Linting passes locally (pnpm run lint)
  • Build completes successfully (pnpm run build)
  • CI checks pass on this PR

🤖 Generated with Claude Code

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 <[email protected]>
@netlify
Copy link

netlify bot commented Jan 1, 2026

Deploy Preview for tourmaline-kringle-c98715 canceled.

Name Link
🔨 Latest commit 1687de3
🔍 Latest deploy log https://app.netlify.com/projects/tourmaline-kringle-c98715/deploys/6956ffaf5bc6ff000714754a

@github-actions
Copy link

github-actions bot commented Jan 1, 2026

Size Change: 0 B 🆕

Total Size: 0 B

compressed-size-action

@captbaritone captbaritone merged commit 54dbe36 into master Jan 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants