From 1bc7a50eb0dcfa07e223c59bf9bc10f7de9f6241 Mon Sep 17 00:00:00 2001 From: Lingeshwar S Date: Tue, 16 Jul 2024 19:13:14 +0530 Subject: [PATCH] fix : gflag group toggle issue Summary: Minor code change Test Plan: Tested manually Reviewers: kkannan, dkumar Reviewed By: kkannan Subscribers: yugaware, ui Differential Revision: https://phorge.dev.yugabyte.com/D36622 --- .../edit-pg-compatibility/EditPGCompatibilityModal.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/managed/ui/src/redesign/features/universe/universe-actions/edit-pg-compatibility/EditPGCompatibilityModal.tsx b/managed/ui/src/redesign/features/universe/universe-actions/edit-pg-compatibility/EditPGCompatibilityModal.tsx index 4650a0541e9b..db65280a30bf 100644 --- a/managed/ui/src/redesign/features/universe/universe-actions/edit-pg-compatibility/EditPGCompatibilityModal.tsx +++ b/managed/ui/src/redesign/features/universe/universe-actions/edit-pg-compatibility/EditPGCompatibilityModal.tsx @@ -144,15 +144,11 @@ export const EditPGCompatibilityModal: FC = ({ clusters: [] }; if (primaryCluster && primaryCluster.userIntent?.specificGFlags) { - const primaryGflagGroups = primaryCluster.userIntent.specificGFlags?.gflagGroups || []; primaryCluster.userIntent.specificGFlags = { ...primaryCluster.userIntent.specificGFlags, - gflagGroups: [ - ...primaryGflagGroups, - ...(formValues.enablePGCompatibitilty - ? [GFLAG_GROUPS.ENHANCED_POSTGRES_COMPATIBILITY] - : []) - ] + gflagGroups: formValues.enablePGCompatibitilty + ? [GFLAG_GROUPS.ENHANCED_POSTGRES_COMPATIBILITY] + : [] }; payload.clusters.push(primaryCluster); }