Fix issue with setting dynamic triggers on immutable widget objects (#1137)
This commit is contained in:
parent
fe58aa4ad8
commit
37f40fcc70
|
|
@ -541,7 +541,9 @@ function* updateDynamicTriggers(
|
|||
widget.type,
|
||||
);
|
||||
if (propertyName in triggerProperties) {
|
||||
let dynamicTriggers: Record<string, true> = widget.dynamicTriggers || {};
|
||||
let dynamicTriggers: Record<string, true> = widget.dynamicTriggers
|
||||
? { ...widget.dynamicTriggers }
|
||||
: {};
|
||||
if (propertyValue && !(propertyName in dynamicTriggers)) {
|
||||
dynamicTriggers[propertyName] = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user