"...git@developer.sourcefind.cn:chenpangpang/open-webui.git" did not exist on "fbdae0f76929068db11b333443f1c9f01f97fe9f"
Commit 482a7723 authored by Zhuoran's avatar Zhuoran
Browse files

Default to true

parent 948d29b6
......@@ -146,7 +146,7 @@
await tick();
if ($settings.scrollOnBranchChange) {
if ($settings?.scrollOnBranchChange ?? true) {
const element = document.getElementById('messages-container');
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
......@@ -197,7 +197,7 @@
await tick();
if ($settings.scrollOnBranchChange) {
if ($settings?.scrollOnBranchChange ?? true) {
const element = document.getElementById('messages-container');
autoScroll = element.scrollHeight - element.scrollTop <= element.clientHeight + 50;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment