Skip to content

Commit eaad999

Browse files
committed
fix: when filtering workspaces, make sure the edge has a to before checking if its a workspace
1 parent 0c209ff commit eaad999

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/commands/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class LS extends ArboristWorkspaceCmd {
9292
}
9393

9494
if (this.npm.flatOptions.includeWorkspaceRoot
95-
&& !edge.to.isWorkspace) {
95+
&& edge.to && !edge.to.isWorkspace) {
9696
return true
9797
}
9898

0 commit comments

Comments
 (0)