Skip to content

Commit 1687de3

Browse files
captbaritoneclaude
andcommitted
Fix TypeScript error in Webamp renderInto call
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>
1 parent bce8459 commit 1687de3

File tree

1 file changed

+1
-1
lines changed
  • packages/skin-database/app/(modern)/scroll

1 file changed

+1
-1
lines changed

packages/skin-database/app/(modern)/scroll/Webamp.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default function WebampComponent({
4242

4343
webamp.onClose(closeModal);
4444
// ref.current!.style.opacity = "0";
45-
await webamp.renderInto(ref.current);
45+
await webamp.renderInto(ref.current!);
4646
const { width } = outerRef.current!.getBoundingClientRect();
4747
const zoom = width / SCREENSHOT_WIDTH;
4848
document

0 commit comments

Comments
 (0)