Document hierarchy collection fixes
This commit is contained in:
@@ -50,8 +50,8 @@ public static class DocumentHierarchyProcessor
|
||||
ElementType = element.GetType().Name,
|
||||
IsSingleChildContainer = element is ContainerElement,
|
||||
Location = locations,
|
||||
Properties = proxy.Child.GetElementConfiguration().ToList(),
|
||||
Children = new List<InspectionElement>()
|
||||
Properties = element.GetElementConfiguration().ToList(),
|
||||
Children = treeNode.Children.Select(Map).ToList()
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,7 +137,7 @@ namespace QuestPDF.Previewer
|
||||
|
||||
private async Task CheckVersionCompatibility(Version version)
|
||||
{
|
||||
if (version.Major == RequiredPreviewerVersionMajor && version.Minor == RequiredPreviewerVersionMinor)
|
||||
if (version is { Major: RequiredPreviewerVersionMajor, Minor: RequiredPreviewerVersionMinor })
|
||||
return;
|
||||
|
||||
await ShowIncompatibleVersion();
|
||||
|
||||
Reference in New Issue
Block a user