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() } = featuresStore!.getState()
const newFeatures = produce(features, (draft) => { const newFeatures = produce(features, (draft) => {
if (draft.file?.image) { if (draft.file?.image) {
if (TransferMethod.all) if (value === TransferMethod.all)
draft.file.image.transfer_methods = [TransferMethod.remote_url, TransferMethod.local_file] draft.file.image.transfer_methods = [TransferMethod.remote_url, TransferMethod.local_file]
else else
draft.file.image.transfer_methods = [value] draft.file.image.transfer_methods = [value]

Loading…
Cancel
Save