From ecd234a114edc83888fb9f193305598400506b16 Mon Sep 17 00:00:00 2001 From: Roman Dmytrenko Date: Thu, 22 Aug 2024 03:01:35 +0300 Subject: [PATCH] fix(ui): show boolean flags as enabled in the console dropdown (#3399) 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 --- ui/src/app/console/Console.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/app/console/Console.tsx b/ui/src/app/console/Console.tsx index ab9e278c31..4863907e9c 100644 --- a/ui/src/app/console/Console.tsx +++ b/ui/src/app/console/Console.tsx @@ -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,