fix: prevent http node overwrite on open (#4127)
This commit is contained in:
parent
13cd409575
commit
6563cb6ec6
1 changed files with 1 additions and 1 deletions
|
|
@ -29,8 +29,8 @@ const useConfig = (id: string, payload: HttpNodeType) => {
|
||||||
const isReady = defaultConfig && Object.keys(defaultConfig).length > 0
|
const isReady = defaultConfig && Object.keys(defaultConfig).length > 0
|
||||||
if (isReady) {
|
if (isReady) {
|
||||||
setInputs({
|
setInputs({
|
||||||
...inputs,
|
|
||||||
...defaultConfig,
|
...defaultConfig,
|
||||||
|
...inputs,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue