fixed parameterComponent with the new state management
This commit is contained in:
parent
ab57b14c52
commit
5e3bdfbb24
1 changed files with 1 additions and 3 deletions
|
|
@ -110,9 +110,7 @@ export default function ParameterComponent({
|
|||
try {
|
||||
const res = await postCustomComponentUpdate(code, name);
|
||||
if (res.status === 200 && data.node?.template) {
|
||||
let clone = cloneDeep(data);
|
||||
clone.node!.template[name] = res.data.template[name];
|
||||
setData(clone);
|
||||
data.node!.template[name] = res.data.template[name];
|
||||
}
|
||||
} catch (err) {
|
||||
setErrorData(err as { title: string; list?: Array<string> });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue