Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fix dialog dismiss

Vishnu Mohandas93957eeea422
diff --git a/web/apps/locker/src/components/CreateItemDialog.tsx b/web/apps/locker/src/components/CreateItemDialog.tsx
index 34d3cc4083..030a2b4035 100644
--- a/web/apps/locker/src/components/CreateItemDialog.tsx
+++ b/web/apps/locker/src/components/CreateItemDialog.tsx
@@ -354,14 +354,8 @@ export const CreateItemDialog: React.FC<CreateItemDialogProps> = ({
return;
}
- setError(null);
- setShowPassword(false);
- setSelectedUploadItems([]);
- setCustomCollectionNames([]);
- setSelectedCollectionNamesByFileKey({});
- resetUploadState();
onClose();
- }, [onClose, resetUploadState, saving, uploading]);
+ }, [onClose, saving, uploading]);
const handleStepBackToOptions = useCallback(() => {
if (isEditMode || saving || uploading) {