Fixed custom component only updating when dragging it

This commit is contained in:
Lucas Oliveira 2023-11-29 17:59:54 -03:00
commit a0c5887d9a

View file

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