Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: unexpected reset of the storage setting (#1475)

Zeng19986ceafc18277e
diff --git a/web/src/components/Settings/StorageSection.tsx b/web/src/components/Settings/StorageSection.tsx
index 8f36c6820..76d317184 100644
--- a/web/src/components/Settings/StorageSection.tsx
+++ b/web/src/components/Settings/StorageSection.tsx
@@ -63,7 +63,7 @@ const StorageSection = () => {
className="w-full mb-4"
value={storageServiceId}
onChange={(_, storageId) => {
- handleActiveStorageServiceChanged(storageId || 0);
+ handleActiveStorageServiceChanged(storageId ?? storageServiceId);
}}
>
<Option value={0}>Database</Option>