From 3688c80f5a501067d90c1ddc88a32d51e833538d Mon Sep 17 00:00:00 2001 From: Yagnik56 Date: Fri, 4 Oct 2024 13:02:41 +0530 Subject: [PATCH] duplicate feature flag import issue is fixed --- backend/packages/Upgrade/src/api/services/FeatureFlagService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/packages/Upgrade/src/api/services/FeatureFlagService.ts b/backend/packages/Upgrade/src/api/services/FeatureFlagService.ts index 0d78b095e4..c0c65e0229 100644 --- a/backend/packages/Upgrade/src/api/services/FeatureFlagService.ts +++ b/backend/packages/Upgrade/src/api/services/FeatureFlagService.ts @@ -1039,7 +1039,7 @@ export class FeatureFlagService { if (compatibilityType === FF_COMPATIBILITY_TYPE.COMPATIBLE) { const keyExists = existingFeatureFlags?.find( - (existingFlag) => existingFlag.key === flag.key && existingFlag.context === flag.context + (existingFlag) => existingFlag.key === flag.key && existingFlag.context[0] === flag.context[0] ); if (keyExists) {