File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1033,23 +1033,22 @@ export default {
1033
1033
}
1034
1034
1035
1035
const graphSections = {}
1036
- for (const [cycle , indexSearch ] of Object .entries (cyclesToNodes)) {
1037
- if (indexSearch .length && ! this .collapseCycle .includes (cycle)) {
1038
- for (const task of indexSearch ) {
1036
+ for (const [cycle , nodesInCycle ] of Object .entries (cyclesToNodes)) {
1037
+ if (nodesInCycle .length && ! this .collapseCycle .includes (cycle)) {
1038
+ for (const task of nodesInCycle ) {
1039
1039
const section = graphSections[task .node .firstParent .id ] ?? = []
1040
1040
section .push (` ${ task .name } [title=${ task .name } ]` )
1041
- graphSections[task .node .firstParent .id ] = section
1042
1041
}
1043
1042
if (this .groupCycle ) {
1044
1043
const removedNodes = new Set ()
1045
- for (const node of indexSearch ) {
1044
+ for (const node of nodesInCycle ) {
1046
1045
if (this .collapseFamily .includes (node .name )) {
1047
1046
for (const child of this .allChildrenLookUp [node .id ]) {
1048
1047
removedNodes .add (child .name )
1049
1048
}
1050
1049
}
1051
1050
}
1052
- const nodeFormattedArray = indexSearch .filter ((a ) => (
1051
+ const nodeFormattedArray = nodesInCycle .filter ((a ) => (
1053
1052
// if its not in the list of families (unless its been collapsed)
1054
1053
(! this .allParentLookUp .has (a .name ) || this .collapseFamily .includes (a .name )) &&
1055
1054
// the node has been removed/collapsed
You can’t perform that action at this time.
0 commit comments