From 27c016d68df37fbf5a92d27a36fa0fc5aafe890c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 28 Nov 2018 12:06:03 -0500 Subject: [PATCH] fix alert --- public/src/modules/topicList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/modules/topicList.js b/public/src/modules/topicList.js index 91dc3ac04c..a8623f8d83 100644 --- a/public/src/modules/topicList.js +++ b/public/src/modules/topicList.js @@ -93,7 +93,7 @@ define('topicList', [ var post = data.posts[0]; if ((!post || !post.topic) || (parseInt(post.topic.mainPid, 10) === parseInt(post.pid, 10)) - || (ajaxify.data.selectedCids && ajaxify.data.selectedCids.indexOf(parseInt(post.topic.cid, 10)) === -1) + || (ajaxify.data.selectedCids && ajaxify.data.selectedCids.length && ajaxify.data.selectedCids.indexOf(parseInt(post.topic.cid, 10)) === -1) || (ajaxify.data.selectedFilter && ajaxify.data.selectedFilter.filter === 'new') || (ajaxify.data.template.category && parseInt(ajaxify.data.cid, 10) !== parseInt(post.topic.cid, 10))) { return;