mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
question marks are the enemy
This commit is contained in:
parent
b44b24299c
commit
23d2abc5d1
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue