Update packages/core-components/src/components/LogViewer/RealLogViewer.tsx

Co-authored-by: Fredrik Adelöw <freben@gmail.com>
Signed-off-by: Ben Vu <167256519+beanview@users.noreply.github.com>
This commit is contained in:
Ben Vu
2025-04-28 13:07:30 -04:00
committed by GitHub
parent c7e7bd7dca
commit 0411d6d3e9
@@ -88,7 +88,7 @@ export function RealLogViewer(props: RealLogViewerProps) {
if (shouldTextWrap && listInstance) {
(listInstance as VariableSizeList<AnsiLine[]>).resetAfterIndex(0);
// lineNumber is 1-based but index is 0-based
heights.current = { ...heights.current, [index - 1]: size };
heights.current[index - 1] = size;
}
}