From 531a381c984868cf40d26108f33fb3b88b803af3 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 20 Nov 2025 00:12:21 -0800 Subject: [PATCH] fix some switching stuff --- src-ui/src/app/components/admin/logs/logs.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src-ui/src/app/components/admin/logs/logs.component.ts b/src-ui/src/app/components/admin/logs/logs.component.ts index 32f72c0c4..1accfeb87 100644 --- a/src-ui/src/app/components/admin/logs/logs.component.ts +++ b/src-ui/src/app/components/admin/logs/logs.component.ts @@ -110,6 +110,7 @@ export class LogsComponent }) if (hasChanges) { this.logs = parsed + this.logContainer?.checkViewportSize() this.scrollToBottom() } }, @@ -145,8 +146,6 @@ export class LogsComponent scrollToBottom(): void { this.changedetectorRef.detectChanges() - if (this.logContainer) { - this.logContainer.scrollTo({ bottom: 0 }) - } + this.logContainer?.scrollTo({ bottom: 0 }) } }