Refactor code for better readability and maintainability

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-06 18:46:05 -03:00
commit 34467d8f70
2 changed files with 38 additions and 18 deletions

View file

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