diff --git a/ui/src/components/StartupLogPanel.tsx b/ui/src/components/StartupLogPanel.tsx index cc71b95e..42b4ad05 100644 --- a/ui/src/components/StartupLogPanel.tsx +++ b/ui/src/components/StartupLogPanel.tsx @@ -24,7 +24,7 @@ export function StartupLogPanel({ deployment, appSlug, envSlug, className }: Sta const scrollToLatest = () => { const el = scrollRef.current; - if (!el) return; + if (!el || typeof el.scrollTo !== 'function') return; // asc → latest at bottom; desc → latest at top const top = sort === 'asc' ? el.scrollHeight : 0; el.scrollTo({ top, behavior: 'smooth' }); @@ -57,6 +57,7 @@ export function StartupLogPanel({ deployment, appSlug, envSlug, className }: Sta