diff --git a/frontend/projects/upgrade/src/app/core/feature-flags/store/feature-flags.effects.ts b/frontend/projects/upgrade/src/app/core/feature-flags/store/feature-flags.effects.ts index 74842d3d3a..7152cd6a44 100644 --- a/frontend/projects/upgrade/src/app/core/feature-flags/store/feature-flags.effects.ts +++ b/frontend/projects/upgrade/src/app/core/feature-flags/store/feature-flags.effects.ts @@ -91,8 +91,9 @@ export class FeatureFlagsEffects { ofType(FeatureFlagsActions.actionAddFeatureFlag), switchMap((action) => { return this.featureFlagsDataService.addFeatureFlag(action.addFeatureFlagRequest).pipe( - map((response) => { - return FeatureFlagsActions.actionAddFeatureFlagSuccess({ response }); + map((response) => FeatureFlagsActions.actionAddFeatureFlagSuccess({ response })), + tap(({ response }) => { + this.router.navigate(['/featureflags', 'detail', response.id]); }), catchError(() => [FeatureFlagsActions.actionAddFeatureFlagFailure()]) );