more timeout race guards

This commit is contained in:
Sebastian Herrlinger
2026-01-29 00:17:34 -05:00
parent e84d92da28
commit 41ea4694db
5 changed files with 13 additions and 4 deletions

View File

@@ -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)
}