We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eae58ca commit d059961Copy full SHA for d059961
packages/app/src/app/pages/Sandbox/Editor/Workspace/Chat/index.tsx
@@ -27,11 +27,11 @@ export const Chat: React.FC = () => {
27
const [height, setHeight] = useState('');
28
const { state, actions } = useOvermind();
29
const messagesRef = useRef(null);
30
- function scrollDown() {
+ const scrollDown = () => {
31
if (messagesRef.current) {
32
messagesRef.current.scrollTop = messagesRef.current.scrollHeight;
33
}
34
- }
+ };
35
useEffect(scrollDown);
36
37
const handleKeyDown = (e: KeyboardEvent) => {
0 commit comments