Skip to content

Commit 4acb828

Browse files
committed
Tidy
1 parent ecb5060 commit 4acb828

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/views/Graph.vue

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,23 +1033,22 @@ export default {
10331033
}
10341034
10351035
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) {
10391039
const section = graphSections[task.node.firstParent.id] ??= []
10401040
section.push(`${task.name} [title=${task.name}]`)
1041-
graphSections[task.node.firstParent.id] = section
10421041
}
10431042
if (this.groupCycle) {
10441043
const removedNodes = new Set()
1045-
for (const node of indexSearch) {
1044+
for (const node of nodesInCycle) {
10461045
if (this.collapseFamily.includes(node.name)) {
10471046
for (const child of this.allChildrenLookUp[node.id]) {
10481047
removedNodes.add(child.name)
10491048
}
10501049
}
10511050
}
1052-
const nodeFormattedArray = indexSearch.filter((a) => (
1051+
const nodeFormattedArray = nodesInCycle.filter((a) => (
10531052
// if its not in the list of families (unless its been collapsed)
10541053
(!this.allParentLookUp.has(a.name) || this.collapseFamily.includes(a.name)) &&
10551054
// the node has been removed/collapsed

0 commit comments

Comments
 (0)