fix: flawed logic in generating topic context collection

This commit is contained in:
Julian Lam
2024-07-11 14:33:07 -04:00
parent 3c0d7616db
commit 31c7226e34
2 changed files with 32 additions and 27 deletions

View File

@@ -386,7 +386,7 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => {
totalItems: count,
};
if (items) {
if (items.length) {
object.orderedItems = items;
if (paginate) {