mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-11 16:35:47 +01:00
fixed category infinite loading
This commit is contained in:
@@ -147,7 +147,7 @@ define(function () {
|
||||
loadingMoreTopics = true;
|
||||
socket.emit('api:category.loadMore', {
|
||||
cid: cid,
|
||||
after: $('#topics-container').children().length
|
||||
after: $('#topics-container').children('.category-item').length
|
||||
}, function (data) {
|
||||
if (data.topics.length) {
|
||||
Category.onTopicsLoaded(data.topics);
|
||||
|
||||
Reference in New Issue
Block a user