If we have less than CHUNK_SIZE posts, then get the first page

Этот коммит содержится в:
JoramWilander
2016-02-11 12:52:01 -05:00
родитель 2747a99aef
Коммит c5b2e8832c

Просмотреть файл

@@ -521,7 +521,9 @@ export function getPosts(id) {
return;
}
if ($.isEmptyObject(PostStore.getAllPosts(channelId))) {
const postList = PostStore.getAllPosts(channelId);
if ($.isEmptyObject(postList) || postList.order.length < Constants.POST_CHUNK_SIZE) {
getPostsPage(channelId, Constants.POST_CHUNK_SIZE);
return;
}