mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-28 16:55:44 +00:00
more timeout race guards
This commit is contained in:
@@ -275,7 +275,8 @@ export function Session() {
|
||||
|
||||
function toBottom() {
|
||||
setTimeout(() => {
|
||||
if (scroll) scroll.scrollTo(scroll.scrollHeight)
|
||||
if (!scroll || scroll.isDestroyed) return
|
||||
scroll.scrollTo(scroll.scrollHeight)
|
||||
}, 50)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user