fix: always send replies uri instead of null if no replies exist, @trwnh

This commit is contained in:
Julian Lam
2024-08-01 14:59:28 -04:00
parent 9bd6896d13
commit ff08fbb73f
2 changed files with 3 additions and 3 deletions

View File

@@ -398,6 +398,8 @@ Helpers.generateCollection = async ({ set, method, page, perPage, url }) => {
object.next = page < pageCount ? `${url}?page=${page + 1}` : null;
object.prev = page > 1 ? `${url}?page=${page - 1}` : null;
}
} else {
object.orderedItems = [];
}
if (paginate) {