Fixed custom component only updating when dragging it
This commit is contained in:
parent
a2d278b52d
commit
a0c5887d9a
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue