mirror of
https://github.com/immich-app/immich
synced 2026-08-29 13:15:45 +00:00
fix!: set duration to null when not present (#26982)
This commit is contained in:
parent
2172dde7dc
commit
7d181f0686
15 changed files with 31 additions and 27 deletions
|
|
@ -332,7 +332,7 @@ export function toAssetResponseDto(asset: MockTimelineAsset, owner?: UserRespons
|
|||
isArchived: false,
|
||||
isTrashed: asset.isTrashed,
|
||||
visibility: asset.visibility,
|
||||
duration: asset.duration || '0:00:00.00000',
|
||||
duration: asset.duration,
|
||||
exifInfo,
|
||||
livePhotoVideoId: asset.livePhotoVideoId,
|
||||
tags: [],
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ export const createMockStackAsset = (ownerId: string): AssetResponseDto => {
|
|||
isArchived: false,
|
||||
isTrashed: false,
|
||||
visibility: AssetVisibility.Timeline,
|
||||
duration: '0:00:00.00000',
|
||||
duration: null,
|
||||
exifInfo: {
|
||||
make: null,
|
||||
model: null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue