We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 30638cf + de0366e commit 7a392b0Copy full SHA for 7a392b0
app/components/chat.tsx
@@ -66,7 +66,7 @@ const Chat = ({
66
const [threadId, setThreadId] = useState("");
67
68
// automatically scroll to bottom of chat
69
- const messagesEndRef = useRef(null);
+ const messagesEndRef = useRef<HTMLDivElement | null>(null);
70
const scrollToBottom = () => {
71
messagesEndRef.current?.scrollIntoView({ behavior: "smooth" });
72
};
0 commit comments