#2894 no need to remove if there are no new posts

This commit is contained in:
Barış Soner Uşaklı
2015-03-25 16:20:27 -04:00
parent 36942125e6
commit 4a18a041c9

View File

@@ -75,7 +75,7 @@ define('forum/topic/posts', [
}
}
if (data.posts.length > 1) {
if (newPosts.length && data.posts.length > 1) {
data.posts.forEach(function(post) {
components.get('post', 'pid', post.pid).remove();
});