Skip to content

Commit

Permalink
fix: when filtering workspaces, make sure the edge has a to before ch…
Browse files Browse the repository at this point in the history
…ecking if its a workspace
  • Loading branch information
nlf committed Jul 13, 2022
1 parent 0c209ff commit eaad999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands/ls.js
Expand Up @@ -92,7 +92,7 @@ class LS extends ArboristWorkspaceCmd {
}

if (this.npm.flatOptions.includeWorkspaceRoot
&& !edge.to.isWorkspace) {
&& edge.to && !edge.to.isWorkspace) {
return true
}

Expand Down

0 comments on commit eaad999

Please sign in to comment.