From 6ceafc18277eebe92f35693be81ad0bde0a87ca6 Mon Sep 17 00:00:00 2001 From: Zeng1998 Date: Wed, 5 Apr 2023 14:37:02 +0800 Subject: [PATCH] fix: unexpected reset of the storage setting (#1475) --- web/src/components/Settings/StorageSection.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/Settings/StorageSection.tsx b/web/src/components/Settings/StorageSection.tsx index 8f36c682..76d31718 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); }} >