Skip to content

Commit

Permalink
Fix contributors widget, when author is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
stirante committed Nov 7, 2020
1 parent e22a573 commit 7293e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _includes/head_custom.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
.then(commits => {
let contributors = [];
for (let i = 0; i < commits.length; i++) {
if (commits[i].author && contributors.filter(value => value.login === commits[i].author.login).length === 0) {
if (commits[i].author && commits[i].author.login && contributors.filter(value => value.login === commits[i].author.login).length === 0) {
contributors.push(commits[i].author);
}
}
Expand Down

0 comments on commit 7293e72

Please sign in to comment.