Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(large-files):fix-sidebar-flicker

Aswin Asok501d44a2feae
diff --git a/web/apps/photos/src/components/Sidebar.tsx b/web/apps/photos/src/components/Sidebar.tsx
index f6e796b5fb..a559324835 100644
--- a/web/apps/photos/src/components/Sidebar.tsx
+++ b/web/apps/photos/src/components/Sidebar.tsx
@@ -1765,14 +1765,14 @@ const FreeUpSpace: React.FC<FreeUpSpaceProps> = ({
}, [onClose, onRootClose]);
const handleDeduplicate = useCallback(() => {
- handleRootClose();
+ onRootClose();
void router.push("/duplicates");
- }, [handleRootClose, router]);
+ }, [onRootClose, router]);
const handleLargeFiles = useCallback(() => {
- handleRootClose();
+ onRootClose();
void router.push("/large-files");
- }, [handleRootClose, router]);
+ }, [onRootClose, router]);
useEffect(() => {
if (!open || !pendingAction) return;