Skip to content

Commit

Permalink
Cast on cast crime
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFarmer committed Jun 28, 2024
1 parent a64a9b0 commit 3fde7b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controls/EnumControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const EnumControl = (props: ControlProps) => {
const options = props.schema.enum
? props.schema.enum?.map((value) => ({
label:
enumValueToLabelMap && typeof value === "string"
? enumValueToLabelMap[value]
enumValueToLabelMap && !!enumValueToLabelMap[value as string]
? enumValueToLabelMap[value as string]
: (value as string),
value: value as string,
}))
Expand Down

0 comments on commit 3fde7b9

Please sign in to comment.