Commit 49d72723ed74ac04099a46e2aae2ef68432ba210
Fix checking git-update size
cel committed on 5/4/2017, 10:21:14 PMParent: 63f0ef02ef5ebe4295b7019a8cd521dae5aae0cb
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | ||
---|---|---|
@@ -470,9 +470,9 @@ | ||
470 | 470 … | RenderMsg.prototype.gitUpdate = function (cb) { |
471 | 471 … | var self = this |
472 | 472 … | // h('a', {href: self.toUrl(self.c.repo)}, 'ssb://' + self.c.repo), |
473 | 473 … | var size = [].concat(self.c.packs, self.c.indexes) |
474 | - .map(function (o) { return o.size }) | |
474 … | + .map(function (o) { return o && o.size }) | |
475 | 475 … | .reduce(function (total, s) { return total + s }) |
476 | 476 … | self.link(self.c.repo, function (err, a) { |
477 | 477 … | if (err) return cb(err) |
478 | 478 … | self.wrap(h('div.ssb-git-update', |
Built with git-ssb-web