Skip to content

Commit 3f56bab

Browse files
fix: ChatMessages scrollAnchorRef type for Next.js build
1 parent ad3075e commit 3f56bab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/confidant-chat-ui/src/ChatMessages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ interface ChatMessagesProps {
2323
copyLabel?: string
2424
copiedLabel?: string
2525
/** Ref for a sentinel div rendered at the end of the list (inside the scroll area) for scroll-into-view. */
26-
scrollAnchorRef?: RefObject<HTMLDivElement | null>
26+
scrollAnchorRef?: RefObject<HTMLDivElement>
2727
}
2828

2929
export function ChatMessages({

0 commit comments

Comments
 (0)