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

This commit is contained in:
Zeng1998 2023-04-05 14:37:02 +08:00 committed by GitHub
parent 8c2224ae39
commit 6ceafc1827
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>