Commit aca3cca93bc332c43026da357c3b9ec4039a48fb
Prevent error related to unrendered messages
Charles Lehner committed on 7/14/2016, 5:53:25 PMParent: 2a17715525a2eddfab1468cf9cda27ec3979812e
Files changed
modules/thread.js | changed |
modules/thread.js | ||
---|---|---|
@@ -88,9 +88,9 @@ | ||
88 | 88 | return 'string' === typeof msg.value.content ? message_unbox(msg) : msg |
89 | 89 | }) |
90 | 90 | |
91 | 91 | if(err) return content.appendChild(h('pre', err.stack)) |
92 | - sort(thread).map(message_render).forEach(function (el) { | |
92 | + sort(thread).map(message_render).filter(Boolean).forEach(function (el) { | |
93 | 93 | content.appendChild(el) |
94 | 94 | }) |
95 | 95 | |
96 | 96 | var branches = sort.heads(thread) |
Built with git-ssb-web