mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-19 00:15:43 +01:00
fix: optional coalescing on constraints
This commit is contained in:
parent
50408cd63b
commit
e397f7ee70
@ -281,7 +281,7 @@ class FeatureToggleService {
|
|||||||
const { featureName, projectId, environment } = context;
|
const { featureName, projectId, environment } = context;
|
||||||
await this.validateFeatureContext(context);
|
await this.validateFeatureContext(context);
|
||||||
|
|
||||||
if (strategyConfig.constraints.length > 0) {
|
if (strategyConfig.constraints?.length > 0) {
|
||||||
await this.validateConstraints(strategyConfig.constraints);
|
await this.validateConstraints(strategyConfig.constraints);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user