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

This commit is contained in:
Pascal M
2024-05-07 04:08:18 +02:00
committed by GitHub
parent 13cd409575
commit 6563cb6ec6

View File

@@ -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