Skip to content

Commit

Permalink
fix: link errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gwynndp committed Feb 6, 2022
1 parent daf6892 commit 222b61b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/models/Stakeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,22 +268,16 @@ const getRelationTrees = async (stakeholders, repo) =>
// don't want to keep getting all of the parents and children recursively, but do want to
// include the current stakeholder as parent/child

// eslint-disable-next-line no-param-reassign
stakeholder.parents = parents.map((parent) => {
// eslint-disable-next-line no-param-reassign
parent.parents = [];
// eslint-disable-next-line no-param-reassign
parent.children = [{ ...stakeholder }];
return parent;
});

const children = await repo.getChildren(stakeholder);

// eslint-disable-next-line no-param-reassign
stakeholder.children = children.map((child) => {
// eslint-disable-next-line no-param-reassign
child.parents = [{ ...stakeholder }];
// eslint-disable-next-line no-param-reassign
child.children = [];
return child;
});
Expand Down

0 comments on commit 222b61b

Please sign in to comment.