From 3a628ede82623efd87511975f1cd65646c77f9eb Mon Sep 17 00:00:00 2001 From: Supra4E8C Date: Sun, 22 Feb 2026 15:03:49 +0800 Subject: [PATCH] refactor(logs): rewire extracted hooks --- src/pages/LogsPage.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/LogsPage.tsx b/src/pages/LogsPage.tsx index 86c5ada..be8afb0 100644 --- a/src/pages/LogsPage.tsx +++ b/src/pages/LogsPage.tsx @@ -50,7 +50,6 @@ const MAX_BUFFER_LINES = 10000; const LONG_PRESS_MS = 650; const LONG_PRESS_MOVE_THRESHOLD = 10; - const HTTP_METHOD_REGEX = new RegExp(`\\b(${HTTP_METHODS.join('|')})\\b`); const LOG_TIMESTAMP_REGEX = /^\[?(\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(?:\.\d{1,3})?)\]?/; @@ -404,10 +403,11 @@ export function LogsPage() { setError(''); try { - const scroller = logScrollerRef.current; - const stickToBottom = !incremental || isNearBottom(scroller?.logViewerRef.current ?? null); + const scrollerInstance = logScrollerRef.current; + const stickToBottom = + !incremental || isNearBottom(scrollerInstance?.logViewerRef.current ?? null); if (stickToBottom) { - scroller?.requestScrollToBottom(); + scrollerInstance?.requestScrollToBottom(); } const params =