瀏覽代碼

fix: cannot change file uploader method (#3710)

tags/0.6.5
Luvian77 1 年之前
父節點
當前提交
96160837d2
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      web/app/components/base/features/feature-panel/file-upload/param-config-content.tsx

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

Loading…
取消
儲存