Skip to content

Commit

Permalink
fix(vis-network): crash when root contributor is null (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreDemailly authored Jan 31, 2025
1 parent 4940742 commit 2f027cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workspaces/vis-network/src/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f027cd

Please sign in to comment.