File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/optimizely-sdk/lib/core/optimizely_config Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -238,7 +238,7 @@ export class OptimizelyConfig {
238
238
const filteredRollout = rollouts . filter ( ( rollout ) => {
239
239
console . log ( "Rollout:" , rollout . id , "Feature:" , feature . id )
240
240
return rollout . id == feature . id ;
241
- } ) ;
241
+ } ) [ 0 ] ;
242
242
console . log ( "FILTERED ROLLOUTS " , filteredRollout )
243
243
features [ feature . key ] = {
244
244
id : feature . id ,
@@ -260,7 +260,7 @@ export class OptimizelyConfig {
260
260
} , { } ) ,
261
261
deliveryRules : Object . values ( allExperiments ) ,
262
262
experimentRules : filteredRollout
263
- ? filteredRollout [ 0 ] . experiments . map ( ( experiment ) => {
263
+ ? filteredRollout . experiments . map ( ( experiment ) => {
264
264
return {
265
265
id : experiment . id ,
266
266
key : experiment . key ,
You can’t perform that action at this time.
0 commit comments