File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/optimizely-sdk/lib/core/project_config Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -98,16 +98,15 @@ module.exports = {
98
98
fns . forEach ( feature . experimentIds || [ ] , function ( experimentId ) {
99
99
// Add this experiment in experiment-feature map.
100
100
if ( projectConfig . experimentFeatureMap [ experimentId ] ) {
101
- projectConfig . experimentFeatureMap [ experimentId ] . push ( feature . id ) ;
101
+ projectConfig . experimentFeatureMap [ experimentId ] . push ( feature . id ) ;
102
102
} else {
103
103
projectConfig . experimentFeatureMap [ experimentId ] = [ feature . id ] ;
104
104
}
105
-
105
+
106
106
var experimentInFeature = projectConfig . experimentIdMap [ experimentId ] ;
107
- if ( experimentInFeature . groupId ) {
107
+ // Experiments in feature can only belong to one mutex group.
108
+ if ( experimentInFeature . groupId && ! feature . groupId ) {
108
109
feature . groupId = experimentInFeature . groupId ;
109
- // Experiments in feature can only belong to one mutex group.
110
- return false ;
111
110
}
112
111
} ) ;
113
112
} ) ;
You can’t perform that action at this time.
0 commit comments