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

Этот коммит содержится в:
Reed Garmsen
2015-07-09 16:25:57 -07:00
родитель ceb243fbb2
Коммит 95a1540dff
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@@ -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">