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
Этот коммит содержится в:
@@ -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">
|
||||
|
||||
@@ -209,10 +209,6 @@ var ChannelStore = assign({}, EventEmitter.prototype, {
|
||||
catch (err) {
|
||||
}
|
||||
|
||||
if (channels == null) {
|
||||
channels = [];
|
||||
}
|
||||
|
||||
return channels;
|
||||
},
|
||||
_storeExtraInfos: function(extraInfos) {
|
||||
|
||||
Ссылка в новой задаче
Block a user