mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +01:00
fix: flawed logic in generating topic context collection
This commit is contained in:
@@ -386,7 +386,7 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => {
|
||||
totalItems: count,
|
||||
};
|
||||
|
||||
if (items) {
|
||||
if (items.length) {
|
||||
object.orderedItems = items;
|
||||
|
||||
if (paginate) {
|
||||
|
||||
Reference in New Issue
Block a user