fix(sidebar): avoid duplicate refresh loads

This commit is contained in:
Bohdan Triapitsyn
2026-07-12 00:47:22 +03:00
parent a8953ad6f9
commit f214af15fc
@@ -644,10 +644,8 @@ export const SidebarFilesTree: React.FC = () => {
const pathsToRefresh = [root, ...normalizedExpanded];
loadedDirsRef.current = new Set(loadedDirsRef.current);
inFlightDirsRef.current = new Set(inFlightDirsRef.current);
for (const dirPath of pathsToRefresh) {
loadedDirsRef.current.delete(dirPath);
inFlightDirsRef.current.delete(dirPath);
}
setLoadErrorsByDir((prev) => {