Skip to content

Commit 973f3dd

Browse files
committed
fix vega tree layout
1 parent b539c94 commit 973f3dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PSGraph.Vega.Extensions/VegaDataConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static List<IGraphRecord> ConvertToParentChildList(this Model.PsBidirecti
9595
}
9696

9797
var rootRecords = records
98-
.Where(r => ((GraphRecord)r).parent == -1)
98+
.Where(r => ((GraphRecord)r).parent == -1 || ((GraphRecord)r).parent == ((GraphRecord)r).id)
9999
.ToList();
100100

101101
// Удаляем их из исходного списка

0 commit comments

Comments
 (0)