File tree 2 files changed +20
-2
lines changed
2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,16 @@ const EditedObjectGroupEditorDialog = ({
104
104
changeset ,
105
105
originalSerializedVariables
106
106
) ;
107
- // TODO Apply the changes on variants when it's done on an events-based object.
107
+ const { eventsBasedObject } = projectScopedContainersAccessor . _scope ;
108
+ if ( eventsBasedObject ) {
109
+ for ( const objectName of group . getAllObjectsNames ( ) . toJSArray ( ) ) {
110
+ gd . ObjectVariableHelper . applyChangesToVariants (
111
+ eventsBasedObject ,
112
+ objectName ,
113
+ changeset
114
+ ) ;
115
+ }
116
+ }
108
117
groupVariablesContainer . clearPersistentUuid ( ) ;
109
118
} ;
110
119
Original file line number Diff line number Diff line change @@ -102,7 +102,16 @@ const ObjectGroupVariablesDialog = ({
102
102
changeset ,
103
103
originalSerializedVariables
104
104
) ;
105
- // TODO Apply the changes on variants when it's done on an events-based object.
105
+ const { eventsBasedObject } = projectScopedContainersAccessor . _scope ;
106
+ if ( eventsBasedObject ) {
107
+ for ( const objectName of objectGroup . getAllObjectsNames ( ) . toJSArray ( ) ) {
108
+ gd . ObjectVariableHelper . applyChangesToVariants (
109
+ eventsBasedObject ,
110
+ objectName ,
111
+ changeset
112
+ ) ;
113
+ }
114
+ }
106
115
groupVariablesContainer . clearPersistentUuid ( ) ;
107
116
} ;
108
117
You can’t perform that action at this time.
0 commit comments