Skip to content

Commit

Permalink
Solving the slow execution of CollectOutputTypes on Custom objects (#479
Browse files Browse the repository at this point in the history
)
  • Loading branch information
Fraser Greenroyd authored Jan 4, 2024
2 parents 341a5b2 + 69695c0 commit ae56ad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI_Engine/Query/OutputParams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ private static void CollectOutputTypes(IEnumerable<IDictionary> objects, ref Dic

private static void CollectOutputTypes(IEnumerable<CustomObject> objects, ref Dictionary<string, List<Type>> properties)
{
foreach (KeyValuePair<string, object> prop in objects.SelectMany(x => x.CustomData).Distinct())
foreach (KeyValuePair<string, object> prop in objects.SelectMany(x => x.CustomData))
{
if (!properties.ContainsKey(prop.Key))
properties[prop.Key] = new List<Type>();
Expand Down

0 comments on commit ae56ad7

Please sign in to comment.