projects
/
cordova-labs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e18f01
)
Update slackin to a1d3f9c5b7
slack-cordova-io
21/head
author
Michael Brooks
<michael@michaelbrooks.ca>
Mon, 22 Jun 2015 21:58:53 +0000
(14:58 -0700)
committer
Michael Brooks
<michael@michaelbrooks.ca>
Mon, 22 Jun 2015 21:58:53 +0000
(14:58 -0700)
lib/slack.js
patch
|
blob
|
history
diff --git
a/lib/slack.js
b/lib/slack.js
index 8bb43b3f9d888bd3f5ce9ebb9bf721396d5e0f62..ed8a55eb309d9750cd5346483e11808a63c4d0ab 100755
(executable)
--- a/
lib/slack.js
+++ b/
lib/slack.js
@@
-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;
});