Skip to content

Commit

Permalink
fix: toggle mv flags (#3450)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Feb 26, 2024
1 parent 1270b18 commit 4214657
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/common/providers/FeatureListProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,18 @@ const FeatureListProvider = class extends React.Component {
}

toggleFlag = (projectId, environmentId, projectFlag, environmentFlag) => {
AppActions.editEnvironmentFlag(
this.editFeatureValue(
projectId,
environmentId,
{
...projectFlag,
default_enabled: !environmentFlag.enabled,
},
projectFlag,
environmentFlag,
null,
'VALUE',
{
...environmentFlag,
enabled: !environmentFlag.enabled,
},
)
}

Expand Down

0 comments on commit 4214657

Please sign in to comment.