From 69f7cd333a5b6c552680f7423f4b8109afcf3459 Mon Sep 17 00:00:00 2001 From: iliya Date: Thu, 26 Feb 2026 21:02:35 +0200 Subject: [PATCH] fix: update dependencies in FileSectionDiff to include discardCounter - Modified the dependency array in the useEffect hook to include discardCounter, ensuring proper reactivity when the discard counter changes. --- src/renderer/components/team/review/FileSectionDiff.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/team/review/FileSectionDiff.tsx b/src/renderer/components/team/review/FileSectionDiff.tsx index 1291c121..df77e1eb 100644 --- a/src/renderer/components/team/review/FileSectionDiff.tsx +++ b/src/renderer/components/team/review/FileSectionDiff.tsx @@ -53,7 +53,7 @@ export const FileSectionDiff = ({ if (localEditorViewRef.current) { onEditorViewReady(file.filePath, localEditorViewRef.current); } - }, [file.filePath, onEditorViewReady]); + }, [file.filePath, onEditorViewReady, discardCounter]); // Auto-viewed sentinel observer useEffect(() => {