From ed58b7035b41eeaff96fe2cf5838bd175fd3de34 Mon Sep 17 00:00:00 2001 From: Farmer Date: Fri, 28 Jun 2024 12:15:37 -0400 Subject: [PATCH] Fix --- src/controls/EnumControl.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/controls/EnumControl.tsx b/src/controls/EnumControl.tsx index 41bf242..1410725 100644 --- a/src/controls/EnumControl.tsx +++ b/src/controls/EnumControl.tsx @@ -34,8 +34,7 @@ export const EnumControl = (props: ControlProps) => { ? enumValue.map((value) => ({ label: enumValueToLabelMap && - typeof value === "string" && - !!enumValueToLabelMap[value] + typeof value === "string" ? enumValueToLabelMap[value] : (value as string), value: value as string,