From 49d72723ed74ac04099a46e2aae2ef68432ba210 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 4 May 2017 12:20:46 -1000 Subject: Fix checking git-update size --- lib/render-msg.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3