Skip to content

Commit

Permalink
Another instance of null repo killing the console.
Browse files Browse the repository at this point in the history
This time it was in the admin stats component.
  • Loading branch information
neomorphic committed Jul 23, 2015
1 parent 6c732ed commit f23deb4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/components/ServerStats.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class StatsDisplay extends React.Component {
for (var key in this.props.repos) {
if (this.props.repos.hasOwnProperty(key)) {
var repo = this.props.repos[key];
versionNodes += Object.keys(repo.DAG.Nodes).length;
if (repo) {
versionNodes += Object.keys(repo.DAG.Nodes).length;
}
}
}

Expand Down

0 comments on commit f23deb4

Please sign in to comment.