Commit ca0b63df96c204a60774b625d7a73ca4c5049721
Hide falsy branch/root links
Reference: %jPUprTDlAhZI0VoKT8OUYoJinC4Glc+1GnlJwAgSH2U=.sha256cel committed on 11/14/2019, 11:21:15 PM
Parent: edc930244c49857c53724b26229dfdb9c0002a5d
Files changed
lib/render-msg.js | changed |
lib/render-msg.js | |||
---|---|---|---|
@@ -573,9 +573,9 @@ | |||
573 | 573 … | ||
574 | 574 … | RenderMsg.prototype.links = function (links, cb) { | |
575 | 575 … | var self = this | |
576 | 576 … | var done = multicb({pluck: 1}) | |
577 | - u.toArray(links).forEach(function (link) { | ||
577 … | + u.toArray(links).filter(Boolean).forEach(function (link) { | ||
578 | 578 … | self.link(link, done()) | |
579 | 579 … | }) | |
580 | 580 … | done(cb) | |
581 | 581 … | } |
Built with git-ssb-web