From 6563cb6ec637a3bb0659007656a0ad204876ef63 Mon Sep 17 00:00:00 2001 From: Pascal M <11357019+perzeuss@users.noreply.github.com> Date: Tue, 7 May 2024 04:08:18 +0200 Subject: [PATCH] fix: prevent http node overwrite on open (#4127) --- web/app/components/workflow/nodes/http/use-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/http/use-config.ts b/web/app/components/workflow/nodes/http/use-config.ts index 768a67617aae7e..8be66a7c35a7fc 100644 --- a/web/app/components/workflow/nodes/http/use-config.ts +++ b/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