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

View File

@ -63,7 +63,7 @@ const StorageSection = () => {
className="w-full mb-4" className="w-full mb-4"
value={storageServiceId} value={storageServiceId}
onChange={(_, storageId) => { onChange={(_, storageId) => {
handleActiveStorageServiceChanged(storageId || 0); handleActiveStorageServiceChanged(storageId ?? storageServiceId);
}} }}
> >
<Option value={0}>Database</Option> <Option value={0}>Database</Option>