From 4a18a041c9cd9121bf2e91b48352d3018234c225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 25 Mar 2015 16:20:27 -0400 Subject: [PATCH] #2894 no need to remove if there are no new posts --- public/src/client/topic/posts.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/topic/posts.js b/public/src/client/topic/posts.js index 85dfbbb6bb..1e907bfca5 100644 --- a/public/src/client/topic/posts.js +++ b/public/src/client/topic/posts.js @@ -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(); });