Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed Jun 28, 2024
1 parent f743e32 commit ed58b70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/controls/EnumControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ed58b70

Please sign in to comment.