From eaad999a49843bed23c2b206f4dba2b1ca74e365 Mon Sep 17 00:00:00 2001 From: nlf Date: Wed, 13 Jul 2022 15:22:37 -0700 Subject: [PATCH] fix: when filtering workspaces, make sure the edge has a to before checking if its a workspace --- lib/commands/ls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/ls.js b/lib/commands/ls.js index d3932072b7d34..073ca0c6992e8 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 }