Просмотр исходного кода

fix: cannot change file uploader method (#3710)

tags/0.6.5
Luvian77 1 год назад
Родитель
Сommit
96160837d2
Аккаунт пользователя с таким Email не найден

+ 1
- 1
web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx Просмотреть файл

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

Загрузка…
Отмена
Сохранить