1
0
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:
Fredrik Oseberg 2022-03-10 14:11:34 +01:00
parent 50408cd63b
commit e397f7ee70

View File

@ -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);
}