diff options
-rw-r--r-- | lib/render-msg.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index 03db33d..2a0e7df 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -471,7 +471,7 @@ RenderMsg.prototype.gitUpdate = function (cb) { var self = this // h('a', {href: self.toUrl(self.c.repo)}, 'ssb://' + self.c.repo), var size = [].concat(self.c.packs, self.c.indexes) - .map(function (o) { return o.size }) + .map(function (o) { return o && o.size }) .reduce(function (total, s) { return total + s }) self.link(self.c.repo, function (err, a) { if (err) return cb(err) |