diff --git a/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts b/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts index 15fbc34c555e..05343d1ff0e9 100644 --- a/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts +++ b/src/lib/features/feature-toggle/feature-toggle-strategies-store.ts @@ -855,6 +855,7 @@ class FeatureStrategiesStore implements IFeatureStrategiesStore { constraints: r.constraints || [], variants: r.strategy_variants || [], parameters: r.parameters, + segments: [], sortOrder: r.sort_order, id: r.strategy_id, title: r.strategy_title || '', diff --git a/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts b/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts index fe3a55616e57..9d59e54c197e 100644 --- a/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts +++ b/src/lib/features/feature-toggle/tests/feature-toggles.e2e.test.ts @@ -3055,7 +3055,7 @@ test('should create a strategy with segments', async () => { (strat) => strat.id === strategyOne.id, ); - expect(strategy.segments).toBe(undefined); + expect(strategy.segments).toEqual([]); }); });