Refactor code

This commit is contained in:
2026-01-31 16:04:29 +01:00
parent eb8dcd54a8
commit c712f31759
15 changed files with 14 additions and 67 deletions

View File

@ -107,7 +107,6 @@ export async function getPortfolioArtworksPage(args: {
.filter((y): y is number => typeof y === "number")
.sort((a, b) => b - a);
// Segment logic (sortKey != null first, then null)
const inNullSegment = cursor?.afterSortKey === null;
const select = {
@ -180,7 +179,6 @@ export async function getPortfolioArtworksPage(args: {
if (!last) {
return { items, nextCursor: null, total, years, albums };
}
// last.sortKey can be null only in null-segment, which we are not in here.
if (last.sortKey == null) {
return { items, nextCursor: null, total, years, albums };
}