Skip to content

Commit 4263513

Browse files
committed
chore: lint
1 parent 7de68a2 commit 4263513

File tree

1 file changed

+5
-1
lines changed
  • frontend/app/src/components/v1/cloud/logging/components

1 file changed

+5
-1
lines changed

frontend/app/src/components/v1/cloud/logging/components/Terminal.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,11 @@ function Terminal({
7474
// The region is defined by both scroll direction AND position, so changing
7575
// direction automatically resets the region state
7676
const isInBottomRegion = isScrollingDown && scrollPercentage > 0.7;
77-
if (isInBottomRegion && !wasInBottomRegionRef.current && onScrollToBottom) {
77+
if (
78+
isInBottomRegion &&
79+
!wasInBottomRegionRef.current &&
80+
onScrollToBottom
81+
) {
7882
onScrollToBottom();
7983
}
8084
wasInBottomRegionRef.current = isInBottomRegion;

0 commit comments

Comments
 (0)