Skip to content

Commit

Permalink
Merge pull request #57 from hfloyd/feature/fix-Level-value
Browse files Browse the repository at this point in the history
Adding the setting of 'Level' in the ValueConverter
  • Loading branch information
madsoulswe authored Jul 10, 2024
2 parents 4fd0702 + 7c45c2c commit 540bfb4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TreeMenu/ValueConverters/SimpleTreeMenuConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,8 @@ private IEnumerable<SimpleTreeItem> convertToItem(List<JObject> objects, Propert
var item = new SimpleTreeItem()
{
Item = element,
Name =sourceObject["name"]?.ToObject<string>()
Name =sourceObject["name"]?.ToObject<string>(),
Level = (int)sourceObject["level"]?.ToObject<int>()
};

var children = sourceObject["items"]?.ToObject<List<JObject>>();
Expand Down

0 comments on commit 540bfb4

Please sign in to comment.