summaryrefslogtreecommitdiffstats
path: root/web/react/components/more_channels.jsx
diff options
context:
space:
mode:
authorReed Garmsen <rgarmsen2295@gmail.com>2015-07-09 16:25:57 -0700
committerReed Garmsen <rgarmsen2295@gmail.com>2015-07-09 16:25:57 -0700
commit95a1540dffe1c279b109e73b47f016e6b8d4a663 (patch)
tree6059204128c22778a4b620ab468ce478e3964e9c /web/react/components/more_channels.jsx
parentceb243fbb289fd9faec7854beef643d83e99b105 (diff)
downloadchat-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/react/components/more_channels.jsx')
-rw-r--r--web/react/components/more_channels.jsx5
1 files changed, 5 insertions, 0 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">