mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
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:
parent
bce845962f
commit
54dbe369d4
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue