Skip to content

Commit

Permalink
fix: tree[parent].deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 21, 2024
1 parent da49bb7 commit 3e0de6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/github.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class Github {
async allDescendantPackages(parent) {
const tree = await this.getSubPackageTree();
let descendants = [];
for (const child of tree[parent] || []) {
for (const child of tree[parent].deps || []) {
descendants = [...new Set([...descendants, ...(await this.allDescendantPackages(child))])];
}
return [parent, ...descendants];
Expand Down

0 comments on commit 3e0de6e

Please sign in to comment.