diff --git a/ui/src/app/components/logs/logs.page.ts b/ui/src/app/components/logs/logs.page.ts index cbc50d58c..41da8652c 100644 --- a/ui/src/app/components/logs/logs.page.ts +++ b/ui/src/app/components/logs/logs.page.ts @@ -98,7 +98,7 @@ export class LogsPage { scrollEvent () { const buttonDiv = document.getElementById('button-div') - this.isOnBottom = buttonDiv.getBoundingClientRect().top < window.innerHeight + this.isOnBottom = buttonDiv && buttonDiv.getBoundingClientRect().top < window.innerHeight } scrollToBottom () {