Removed unused console.log and fixed takeSnapshot logic

This commit is contained in:
Lucas Oliveira 2023-11-29 16:42:45 -03:00
commit 47885cd5f0
7 changed files with 8 additions and 16 deletions

View file

@ -120,6 +120,9 @@ export default function ParameterComponent({
const handleOnNewValue = (
newValue: string | string[] | boolean | Object[]
): void => {
if (data.node!.template[name].value === newValue) {
return;
}
takeSnapshot();
data.node!.template[name].value = newValue;
// Set state to pending