Skip to content

Commit

Permalink
fix : gflag group toggle issue
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Lingeshwar committed Jul 16, 2024
1 parent 47da28c commit 1bc7a50
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,11 @@ export const EditPGCompatibilityModal: FC<PGCompatibilityModalProps> = ({
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);
}
Expand Down

0 comments on commit 1bc7a50

Please sign in to comment.