Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix encryption confirm

Stanimir89c7ee976c27
diff --git a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
index 13dd5bfde..4aa5a87ea 100644
--- a/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
+++ b/src/renderer/components/dialogs/CreateEditLocationDialog.tsx
@@ -175,7 +175,7 @@ function CreateEditLocationDialog(props: Props) {
const [encryptionKey, setEncryptionKey] = useState<string>(
selectedLocation && selectedLocation.encryptionKey
? selectedLocation.encryptionKey
- : '',
+ : undefined,
);
const [authType, setAuthType] = useState<string>('password');
const [isDefault, setIsDefault] = useState<boolean>(