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.
This commit is contained in:
iliya 2026-02-26 21:02:35 +02:00
parent 43dd94cd2c
commit 69f7cd333a

View file

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