Skip to content

Commit

Permalink
Merge pull request #159 from Green-Software-Foundation/nested-strateg…
Browse files Browse the repository at this point in the history
…y-fix

Provide fix for nested children
  • Loading branch information
jmcook1186 authored Sep 18, 2023
2 parents 665ec13 + 0754068 commit d4989f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/util/supercomputer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ export class Supercomputer {
);

await observatory.doInvestigationsWith(modelInstance);
}

if (areChildrenNested) {
this.impl.graph.children[this.olderChild.name].children[
childName
].impacts = observatory.getImpacts();
if (areChildrenNested) {
this.impl.graph.children[this.olderChild.name].children[
childName
].impacts = observatory.getImpacts();

return;
}
return;
}

this.impl.graph.children[this.olderChild.name].impacts =
Expand Down

0 comments on commit d4989f2

Please sign in to comment.