diff options
author | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-09 16:25:57 -0700 |
---|---|---|
committer | Reed Garmsen <rgarmsen2295@gmail.com> | 2015-07-09 16:25:57 -0700 |
commit | 95a1540dffe1c279b109e73b47f016e6b8d4a663 (patch) | |
tree | 6059204128c22778a4b620ab468ce478e3964e9c /web | |
parent | ceb243fbb289fd9faec7854beef643d83e99b105 (diff) | |
download | chat-95a1540dffe1c279b109e73b47f016e6b8d4a663.tar.gz chat-95a1540dffe1c279b109e73b47f016e6b8d4a663.tar.bz2 chat-95a1540dffe1c279b109e73b47f016e6b8d4a663.zip |
Leave result of _getMoreChannels unitialized if it does not yet exist in browser storage to know when list of more channels is loading vs when its empty
Diffstat (limited to 'web')
-rw-r--r-- | web/react/components/more_channels.jsx | 5 | ||||
-rw-r--r-- | web/react/stores/channel_store.jsx | 4 |
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) { |