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(() => {