fix: possible fix for #1139

This commit is contained in:
Timothy J. Baek 2024-03-12 13:47:49 -07:00
parent 5a567ce4d0
commit 3790790a18
2 changed files with 6 additions and 2 deletions

View file

@ -140,7 +140,9 @@
};
const scrollToBottom = () => {
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
if (messagesContainerElement) {
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
}
};
//////////////////////////

View file

@ -160,7 +160,9 @@
};
const scrollToBottom = () => {
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
if (messagesContainerElement) {
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
}
};
//////////////////////////