From eac1bf26f28e9e8fc07e1350c3d7b14a94005ebf Mon Sep 17 00:00:00 2001 From: nlf Date: Mon, 1 Aug 2022 11:02:18 -0700 Subject: fix(ls): when filtering workspaces, make sure the edge has a to before checking if its a workspace (#5164) --- lib/commands/ls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/commands/ls.js b/lib/commands/ls.js index d3932072b..073ca0c69 100644 --- a/lib/commands/ls.js +++ b/lib/commands/ls.js @@ -92,7 +92,7 @@ class LS extends ArboristWorkspaceCmd { } if (this.npm.flatOptions.includeWorkspaceRoot - && !edge.to.isWorkspace) { + && edge.to && !edge.to.isWorkspace) { return true } -- cgit v1.2.3