Skip to content

Commit

Permalink
tracer: Fix pre-mount crash in the auto-scroll logic
Browse files Browse the repository at this point in the history
  • Loading branch information
oleavr committed Oct 17, 2024
1 parent 3dbfd2e commit bdecac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tracer/src/EventView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export default function EventView({
itemData={items}
onItemsRendered={() => {
if (autoscroll.current.enabled) {
listRef.current!.scrollToItem(items.length - 1);
listRef.current?.scrollToItem(items.length - 1);
}
}}
onScroll={() => {
Expand Down

0 comments on commit bdecac0

Please sign in to comment.