fix: show correct stacking info on mobile

This commit is contained in:
Alex Tran 2024-09-03 12:46:38 -05:00
parent 5d6716d265
commit fe039857d8
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,7 @@ export const mapAlbum = (entity: AlbumEntity, withAssets: boolean, auth?: AuthDt
hasSharedLink,
startDate,
endDate,
assets: (withAssets ? assets : []).map((asset) => mapAsset(asset, { auth })),
assets: (withAssets ? assets : []).map((asset) => mapAsset(asset, { auth, withStack: true })),
assetCount: entity.assets?.length || 0,
isActivityEnabled: entity.isActivityEnabled,
order: entity.order,

View File

@ -46,6 +46,7 @@ export class AlbumRepository implements IAlbumRepository {
if (options.withAssets) {
relations.assets = {
exifInfo: true,
stack: { assets: true },
};
order.assets = {