Ver código fonte

fix: cannot change file uploader method (#3710)

tags/0.6.5
Luvian77 1 ano atrás
pai
commit
96160837d2
Nenhuma conta vinculada ao e-mail do autor do commit

+ 1
- 1
web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx Ver arquivo

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

Carregando…
Cancelar
Salvar