فهرست منبع

fix: cannot change file uploader method (#3710)

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]