瀏覽代碼

Fix no replies filter

sbkwgh 8 年之前
父節點
當前提交
8aadc9f7cd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/routes/Index.vue

+ 2 - 2
src/components/routes/Index.vue

@@ -118,8 +118,8 @@
 						return b.postsCount-1 - a.postsCount-1;
 					}
 				}).filter(thread => {
-					if(filter === 'NO_REPLIES') {
-						return thread.postsCount - 1;
+					if(filter === 'NO_REPLIES' && thread.postsCount-1) {
+						return false
 					} else {
 						return true;
 					}