Преглед на файлове

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]