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)
|
if (this.state.channels != null)
|
||||||
moreChannels = this.state.channels;
|
moreChannels = this.state.channels;
|
||||||
|
|
||||||
|
console.log("Check: " + moreChannels)
|
||||||
|
|
||||||
|
if (moreChannels)
|
||||||
|
console.log("Length: " + moreChannels.length)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="modal fade" id="more_channels" ref="modal" tabIndex="-1" role="dialog" aria-hidden="true">
|
<div className="modal fade" id="more_channels" ref="modal" tabIndex="-1" role="dialog" aria-hidden="true">
|
||||||
<div className="modal-dialog">
|
<div className="modal-dialog">
|
||||||
|
|||||||
@@ -209,10 +209,6 @@ var ChannelStore = assign({}, EventEmitter.prototype, {
|
|||||||
catch (err) {
|
catch (err) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (channels == null) {
|
|
||||||
channels = [];
|
|
||||||
}
|
|
||||||
|
|
||||||
return channels;
|
return channels;
|
||||||
},
|
},
|
||||||
_storeExtraInfos: function(extraInfos) {
|
_storeExtraInfos: function(extraInfos) {
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user