Restructured logic to flow more naturally and be cleaner
Этот коммит содержится в:
@@ -408,7 +408,9 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
var postCtls = [];
|
var postCtls = [];
|
||||||
var previousPostDay = posts && posts[order[order.length-1]] ? utils.getDateForUnixTicks(posts[order[order.length-1]].create_at): new Date();
|
|
||||||
|
if (posts != undefined) {
|
||||||
|
var previousPostDay = posts[order[order.length-1]] ? utils.getDateForUnixTicks(posts[order[order.length-1]].create_at): new Date();
|
||||||
var currentPostDay = new Date();
|
var currentPostDay = new Date();
|
||||||
|
|
||||||
for (var i = order.length-1; i >= 0; i--) {
|
for (var i = order.length-1; i >= 0; i--) {
|
||||||
@@ -458,8 +460,8 @@ module.exports = React.createClass({
|
|||||||
postCtls.push(postCtl);
|
postCtls.push(postCtl);
|
||||||
previousPostDay = utils.getDateForUnixTicks(post.create_at);
|
previousPostDay = utils.getDateForUnixTicks(post.create_at);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (posts == undefined) {
|
else {
|
||||||
postCtls.push(
|
postCtls.push(
|
||||||
<div ref="loadingscreen" className="loading-screen">
|
<div ref="loadingscreen" className="loading-screen">
|
||||||
<div className="loading__content">
|
<div className="loading__content">
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user