Skip to content

Commit

Permalink
Enums: Explicitely state empty strings
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Oct 23, 2024
1 parent 94359da commit 2b9775b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const SelectFormField = memo((props: Props) => {
<MenuItem key={index} value={`${index}`}>
{(() => {
if (typeof option === "string") {
return option;
return option === "" ? "(Empty string)" : option;
}

return <pre>{JSON.stringify(option, null, 2)}</pre>;
Expand Down

0 comments on commit 2b9775b

Please sign in to comment.