Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b59235d

Browse files
chore: draw minimap function deps correction
1 parent 8b365a5 commit b59235d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/components/DiffViewer/hooks/useMinimapDraw.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export function useMinimapDraw({
151151
}
152152
drawScrollBox(ctx, MINIMAP_HOVER_SCROLL_COLOR);
153153
}
154-
}, [leftDiff,rightDiff,height,currentScrollTop,searchResults,currentMatchIndex,drawLine,viewportHeight]);
154+
}, [drawScrollBox]);
155155

156156
useEffect(() => {
157157
drawMinimap();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /