diff --git a/js/components/ServerStats.react.js b/js/components/ServerStats.react.js index c6b645a..f8c3b8a 100644 --- a/js/components/ServerStats.react.js +++ b/js/components/ServerStats.react.js @@ -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; + } } }