From 23d2abc5d17f3aeceacae811fa2a80e42027ade5 Mon Sep 17 00:00:00 2001 From: mertalev <101130780+mertalev@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:55:14 -0400 Subject: [PATCH] question marks are the enemy --- server/src/services/album.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/services/album.service.ts b/server/src/services/album.service.ts index 93cfc298ce..d456522021 100644 --- a/server/src/services/album.service.ts +++ b/server/src/services/album.service.ts @@ -80,8 +80,8 @@ export class AlbumService extends BaseService { const [albumMetadataForIds] = await this.albumRepository.getMetadataForIds([album.id]); // Determine if the album is shared (shared users or shared link) - const hasSharedUsers = (album.albumUsers?.length ?? 0) > 0; - const hasSharedLink = (album.sharedLinks?.length ?? 0) > 0; + const hasSharedUsers = album.albumUsers && album.albumUsers.length > 0; + const hasSharedLink = album.sharedLinks && album.sharedLinks.length > 0; const isShared = hasSharedUsers || hasSharedLink; return {