From ca0b63df96c204a60774b625d7a73ca4c5049721 Mon Sep 17 00:00:00 2001 From: cel Date: Thu, 14 Nov 2019 13:21:15 -1000 Subject: Hide falsy branch/root links Reference: %jPUprTDlAhZI0VoKT8OUYoJinC4Glc+1GnlJwAgSH2U=.sha256 --- 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 a29a21b..0c8fbf2 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -574,7 +574,7 @@ RenderMsg.prototype.link1 = function (link, cb) { RenderMsg.prototype.links = function (links, cb) { var self = this var done = multicb({pluck: 1}) - u.toArray(links).forEach(function (link) { + u.toArray(links).filter(Boolean).forEach(function (link) { self.link(link, done()) }) done(cb) -- cgit v1.2.3