Document hierarchy collection fixes

This commit is contained in:
MarcinZiabek
2022-12-11 00:53:04 +01:00
parent e4a5c471ee
commit 2f55b8d386
2 changed files with 3 additions and 3 deletions
@@ -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()
};
}
}
+1 -1
View File
@@ -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();