Refactor code for better readability and maintainability
This commit is contained in:
parent
03d7bce95d
commit
34467d8f70
2 changed files with 38 additions and 18 deletions
|
|
@ -130,12 +130,7 @@ export default function ParameterComponent({
|
|||
const shouldUpdate =
|
||||
data.node?.template[name].refresh &&
|
||||
data.node!.template[name].value !== newValue;
|
||||
console.log("shouldUpdate", shouldUpdate);
|
||||
console.log(
|
||||
"data.node!.template[name].value",
|
||||
data.node!.template[name].value
|
||||
);
|
||||
console.log("newValue", newValue);
|
||||
|
||||
data.node!.template[name].value = newValue; // necessary to enable ctrl+z inside the input
|
||||
let newTemplate;
|
||||
if (shouldUpdate) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue