forked from open-webui/open-webui
fix: possible fix for #1139
This commit is contained in:
parent
5a567ce4d0
commit
3790790a18
2 changed files with 6 additions and 2 deletions
|
@ -140,7 +140,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const scrollToBottom = () => {
|
const scrollToBottom = () => {
|
||||||
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
|
if (messagesContainerElement) {
|
||||||
|
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
|
@ -160,7 +160,9 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
const scrollToBottom = () => {
|
const scrollToBottom = () => {
|
||||||
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
|
if (messagesContainerElement) {
|
||||||
|
messagesContainerElement.scrollTop = messagesContainerElement.scrollHeight;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
//////////////////////////
|
//////////////////////////
|
||||||
|
|
Loading…
Reference in a new issue