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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user