diff options
Diffstat (limited to 'lib/render-msg.js')
-rw-r--r-- | lib/render-msg.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/render-msg.js b/lib/render-msg.js index d76f126..1093710 100644 --- a/lib/render-msg.js +++ b/lib/render-msg.js @@ -218,7 +218,8 @@ RenderMsg.prototype.recpsIds = function () { } RenderMsg.prototype.buttonsCommon = function () { - var chan = this.msg.value.content.channel + var c = this.msg.value.content + var chan = c && c.channel var recps = this.recpsIds() return [ chan ? h('input', {type: 'hidden', name: 'channel', value: chan}) : '', |