Update slackin to a1d3f9c5b7 slack-cordova-io 21/head
authorMichael Brooks <michael@michaelbrooks.ca>
Mon, 22 Jun 2015 21:58:53 +0000 (14:58 -0700)
committerMichael Brooks <michael@michaelbrooks.ca>
Mon, 22 Jun 2015 21:58:53 +0000 (14:58 -0700)
lib/slack.js

index 8bb43b3f9d888bd3f5ce9ebb9bf721396d5e0f62..ed8a55eb309d9750cd5346483e11808a63c4d0ab 100755 (executable)
@@ -44,7 +44,7 @@ export default class SlackData extends EventEmitter {
 
     // reset the list of channels
     this.channelsByName = {};
-    res.body.channels.forEach(channel => {
+    (res.body.channels || []).forEach(channel => {
       this.channelsByName[channel.name] = channel;
     });