Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix state

Vishnu Mohandas21706f01ab57
diff --git a/web/apps/locker/src/pages/locker.tsx b/web/apps/locker/src/pages/locker.tsx
index b1c81409b7..88952ee102 100644
--- a/web/apps/locker/src/pages/locker.tsx
+++ b/web/apps/locker/src/pages/locker.tsx
@@ -971,7 +971,7 @@ export const LockerPage: React.FC = () => {
);
const handleConfirmDeleteCollection = useCallback(async () => {
- const dialogState = deleteCollectionDialogRef.current;
+ const dialogState = deleteCollectionDialog;
if (!dialogState) {
return;
}
@@ -1033,6 +1033,7 @@ export const LockerPage: React.FC = () => {
}
}, [
collections,
+ deleteCollectionDialog,
masterKey,
navigateHome,
removeCollectionFromState,