fix: cannot change file uploader method (#3710)

pull/3713/head
Luvian77 2 years ago committed by GitHub
parent 3480f1c59e
commit 96160837d2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save