Skip to content

Commit

Permalink
In my rush to fix this forgot to reset depth to zero
Browse files Browse the repository at this point in the history
  • Loading branch information
jbomhold3 committed Oct 14, 2024
1 parent 8a1f456 commit d6592d8
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ public static ICollection<string> GetPropertyPaths<TGridItem>()
private static ICollection<string> GetPropertyPathRecursive(Type type, string parentPath = "", bool isRoot = true, int depth = 0, Type? parentType = null)
{
if (parentType == type) depth++;
else depth = 0;
if(depth > 3) return new List<string>();
List<string> propertyPaths = new List<string>();
// Reflect only public instance properties
Expand Down

0 comments on commit d6592d8

Please sign in to comment.