Skip to content

Commit

Permalink
code brought back to the original structure
Browse files Browse the repository at this point in the history
  • Loading branch information
pawelbaran authored and Fraser Greenroyd committed Mar 23, 2023
1 parent 9ea35dc commit 32942b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions BHoM_UI/Components/oM/CreateEnum.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,10 @@ protected override void SetComponentDetails()

public override List<string> GetChoiceNames()
{
List<string> names = new List<string>();
if (EnumType != null)
names.AddRange(Enum.GetValues(EnumType).OfType<Enum>().Select(x => x.IToText()));

return names;
return Enum.GetValues(EnumType).OfType<Enum>().Select(x => x.ToText()).ToList();
else
return new List<string>();
}

/*************************************/
Expand Down

0 comments on commit 32942b7

Please sign in to comment.