Forráskód Böngészése

fix: prevent http node overwrite on open (#4127)

Pascal M 11 hónapja
szülő
commit
6563cb6ec6
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      web/app/components/workflow/nodes/http/use-config.ts

+ 1 - 1
web/app/components/workflow/nodes/http/use-config.ts

@@ -29,8 +29,8 @@ const useConfig = (id: string, payload: HttpNodeType) => {
     const isReady = defaultConfig && Object.keys(defaultConfig).length > 0
     if (isReady) {
       setInputs({
-        ...inputs,
         ...defaultConfig,
+        ...inputs,
       })
     }
   // eslint-disable-next-line react-hooks/exhaustive-deps