summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/components/more_channels.jsx5
-rw-r--r--web/react/stores/channel_store.jsx4
2 files changed, 5 insertions, 4 deletions
diff --git a/web/react/components/more_channels.jsx b/web/react/components/more_channels.jsx
index 1af259853..f7a88e595 100644
--- a/web/react/components/more_channels.jsx
+++ b/web/react/components/more_channels.jsx
@@ -66,6 +66,11 @@ module.exports = React.createClass({
if (this.state.channels != null)
moreChannels = this.state.channels;
+ console.log("Check: " + moreChannels)
+
+ if (moreChannels)
+ console.log("Length: " + moreChannels.length)
+
return (
<div className="modal fade" id="more_channels" ref="modal" tabIndex="-1" role="dialog" aria-hidden="true">
<div className="modal-dialog">
diff --git a/web/react/stores/channel_store.jsx b/web/react/stores/channel_store.jsx
index 340ce9922..f6b8fecd4 100644
--- a/web/react/stores/channel_store.jsx
+++ b/web/react/stores/channel_store.jsx
@@ -209,10 +209,6 @@ var ChannelStore = assign({}, EventEmitter.prototype, {
catch (err) {
}
- if (channels == null) {
- channels = [];
- }
-
return channels;
},
_storeExtraInfos: function(extraInfos) {