aboutsummaryrefslogtreecommitdiff
path: root/lib/render-msg.js
diff options
context:
space:
mode:
authorcel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-10 12:58:15 -0400
committercel <cel@lOUVT+Phkvai9a/cCS/RKo+S9hnPAQdVixms/7ldpPA=.ed25519>2020-05-10 12:58:15 -0400
commit9914643b57307ebf026047fad554119165e99895 (patch)
tree46325a81957fda668c648672ddd3a54762d2cda0 /lib/render-msg.js
parent626f5b402618c82bf36ba36321b00956dfb5b2ba (diff)
downloadpatchfoo-9914643b57307ebf026047fad554119165e99895.tar.gz
patchfoo-9914643b57307ebf026047fad554119165e99895.zip
Fix don't show duplicate branch/root link
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r--lib/render-msg.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js
index c1dd38b..20b9e15 100644
--- a/lib/render-msg.js
+++ b/lib/render-msg.js
@@ -437,9 +437,9 @@ RenderMsg.prototype.post = function (cb) {
})
}
var done = multicb({pluck: 1, spread: true})
- if (self.c.root === self.c.branch) done()()
- else self.link(self.c.root, done())
var branches = u.toArray(self.c.branch)
+ if (branches.length === 1 && self.c.root === branches[0]) done()()
+ else self.link(self.c.root, done())
self.links(branches, done())
self.links(self.c.fork, done())
var replyIById = {}