From 0411d6d3e9806981c1b068b7235787adf26fa3de Mon Sep 17 00:00:00 2001 From: Ben Vu <167256519+beanview@users.noreply.github.com> Date: Mon, 28 Apr 2025 13:07:30 -0400 Subject: [PATCH] Update packages/core-components/src/components/LogViewer/RealLogViewer.tsx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Fredrik Adelöw Signed-off-by: Ben Vu <167256519+beanview@users.noreply.github.com> --- .../core-components/src/components/LogViewer/RealLogViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-components/src/components/LogViewer/RealLogViewer.tsx b/packages/core-components/src/components/LogViewer/RealLogViewer.tsx index c3b9d67773..e384a8e882 100644 --- a/packages/core-components/src/components/LogViewer/RealLogViewer.tsx +++ b/packages/core-components/src/components/LogViewer/RealLogViewer.tsx @@ -88,7 +88,7 @@ export function RealLogViewer(props: RealLogViewerProps) { if (shouldTextWrap && listInstance) { (listInstance as VariableSizeList).resetAfterIndex(0); // lineNumber is 1-based but index is 0-based - heights.current = { ...heights.current, [index - 1]: size }; + heights.current[index - 1] = size; } }