From 163e8c21746c00b34a70ce793b09860ce62e71e9 Mon Sep 17 00:00:00 2001 From: PierreDemailly Date: Fri, 31 Jan 2025 23:09:50 +0100 Subject: [PATCH] fix(vis-network): crash when root contributor is null --- workspaces/vis-network/src/dataset.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspaces/vis-network/src/dataset.js b/workspaces/vis-network/src/dataset.js index 06a8da0e..92f6eb03 100644 --- a/workspaces/vis-network/src/dataset.js +++ b/workspaces/vis-network/src/dataset.js @@ -110,7 +110,7 @@ export default class NodeSecureDataSet extends EventTarget { ); const isFriendly = window.settings.config.showFriendlyDependencies & rootContributors.some( (rootContributor) => contributors.some((contributor) => { - if (contributor === null) { + if (contributor === null || rootContributor === null) { return false; } else if (contributor.email && contributor.email === rootContributor.email) {