Skip to content

Commit

Permalink
fix(ui): show boolean flags as enabled in the console dropdown (#3399)
Browse files Browse the repository at this point in the history
With all changes to flags dashboard and showing the boolean flags as
always enabled this commit makes the same for console.

related #3300

Signed-off-by: Roman Dmytrenko <[email protected]>
  • Loading branch information
erka authored Aug 22, 2024
1 parent 3cde83a commit ecd234a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/src/app/console/Console.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export default function Console() {
const flags = useMemo(() => {
const initialFlags = data?.flags || [];
return initialFlags.map((flag) => {
const status = flag.enabled ? 'active' : 'inactive';
const status =
flag.enabled || flag.type === FlagType.BOOLEAN ? 'active' : 'inactive';

return {
...flag,
Expand Down

0 comments on commit ecd234a

Please sign in to comment.