mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: null check (#21536)
This commit is contained in:
parent
674faf2e57
commit
5ce946bb5b
1 changed files with 3 additions and 3 deletions
|
|
@ -286,7 +286,7 @@ extension on Iterable<PlatformAlbum> {
|
|||
(e) => LocalAlbum(
|
||||
id: e.id,
|
||||
name: e.name,
|
||||
updatedAt: tryFromSecondsSinceEpoch(e.updatedAt!) ?? DateTime.now(),
|
||||
updatedAt: tryFromSecondsSinceEpoch(e.updatedAt) ?? DateTime.now(),
|
||||
assetCount: e.assetCount,
|
||||
),
|
||||
).toList();
|
||||
|
|
@ -301,8 +301,8 @@ extension on Iterable<PlatformAsset> {
|
|||
name: e.name,
|
||||
checksum: null,
|
||||
type: AssetType.values.elementAtOrNull(e.type) ?? AssetType.other,
|
||||
createdAt: tryFromSecondsSinceEpoch(e.createdAt!) ?? DateTime.now(),
|
||||
updatedAt: tryFromSecondsSinceEpoch(e.updatedAt!) ?? DateTime.now(),
|
||||
createdAt: tryFromSecondsSinceEpoch(e.createdAt) ?? DateTime.now(),
|
||||
updatedAt: tryFromSecondsSinceEpoch(e.updatedAt) ?? DateTime.now(),
|
||||
width: e.width,
|
||||
height: e.height,
|
||||
durationInSeconds: e.durationInSeconds,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue