mirror of
https://github.com/immich-app/immich.git
synced 2025-03-01 15:11:21 +01:00
Fix cannot query shared album on mobile (#298)
This commit is contained in:
parent
633170d743
commit
7586c65103
1 changed files with 4 additions and 1 deletions
|
@ -72,7 +72,10 @@ class SharedAlbum {
|
||||||
albumThumbnailAssetId: map['albumThumbnailAssetId'],
|
albumThumbnailAssetId: map['albumThumbnailAssetId'],
|
||||||
sharedUsers:
|
sharedUsers:
|
||||||
List<User>.from(map['sharedUsers']?.map((x) => User.fromMap(x))),
|
List<User>.from(map['sharedUsers']?.map((x) => User.fromMap(x))),
|
||||||
assets: map['assets']?.map((x) => ImmichAsset.fromMap(x)).toList(),
|
assets: map['assets'] != null
|
||||||
|
? List<ImmichAsset>.from(
|
||||||
|
map['assets']?.map((x) => ImmichAsset.fromMap(x)))
|
||||||
|
: null,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue