fix: cannot change file uploader method (#3710)

This commit is contained in:
Luvian77 2024-04-23 17:02:12 +08:00 committed by GitHub
parent 3480f1c59e
commit 96160837d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -38,7 +38,7 @@ const ParamConfigContent = ({
} = featuresStore!.getState()
const newFeatures = produce(features, (draft) => {
if (draft.file?.image) {
if (TransferMethod.all)
if (value === TransferMethod.all)
draft.file.image.transfer_methods = [TransferMethod.remote_url, TransferMethod.local_file]
else
draft.file.image.transfer_methods = [value]