From 7aff2ad234996bf0b4e6f3c5c2245b5915fe34c9 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sun, 11 Jul 2021 14:22:48 +0200 Subject: [PATCH] Small quality improvement related to the log window --- shared/js/ui/frames/log/Renderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/ui/frames/log/Renderer.tsx b/shared/js/ui/frames/log/Renderer.tsx index b0b675cf..8e5607b5 100644 --- a/shared/js/ui/frames/log/Renderer.tsx +++ b/shared/js/ui/frames/log/Renderer.tsx @@ -73,7 +73,7 @@ const ServerLogRenderer = (props: { backlog?: number }) => { logs.splice(0, Math.max(0, logs.length - backlog)); logs.sort((a, b) => a.timestamp - b.timestamp); setRevision(performance.now()); - }); + }, logs !== "loading", [ logs ]); const fixScroll = () => { if(!refContainer.current) {