diff --git a/src/lib/services/feature-toggle-service.ts b/src/lib/services/feature-toggle-service.ts index bde597735a..80f4c8d984 100644 --- a/src/lib/services/feature-toggle-service.ts +++ b/src/lib/services/feature-toggle-service.ts @@ -281,7 +281,7 @@ class FeatureToggleService { const { featureName, projectId, environment } = context; await this.validateFeatureContext(context); - if (strategyConfig.constraints.length > 0) { + if (strategyConfig.constraints?.length > 0) { await this.validateConstraints(strategyConfig.constraints); }