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 = (
|
const handleOnNewValue = (
|
||||||
newValue: string | string[] | boolean | Object[]
|
newValue: string | string[] | boolean | Object[]
|
||||||
): void => {
|
): void => {
|
||||||
if (data.node!.template[name].value === newValue) {
|
if (data.node!.template[name].value !== newValue) {
|
||||||
return;
|
takeSnapshot();
|
||||||
}
|
}
|
||||||
takeSnapshot();
|
|
||||||
data.node!.template[name].value = newValue;
|
data.node!.template[name].value = newValue;
|
||||||
// Set state to pending
|
// Set state to pending
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue