Skip to content

Commit

Permalink
fix: Make sure the enumerable is a List (#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandercox committed Jun 23, 2023
1 parent cfe5f71 commit 5ec4ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WingetCreateCLI/PromptHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ public static void PromptList<T>(string message, object model, string memberName
// Trim values if we have List<string>
if (instanceType == typeof(string))
{
value = (IEnumerable<T>)value.Select(v => v.ToString().Trim());
value = (IEnumerable<T>)value.Select(v => v.ToString().Trim()).ToList();
}
}

Expand Down

0 comments on commit 5ec4ad6

Please sign in to comment.