fix!: set duration to null when not present (#26982)

This commit is contained in:
Mees Frensel 2026-04-17 11:57:10 +02:00 committed by GitHub
parent 2172dde7dc
commit 7d181f0686
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 31 additions and 27 deletions

View file

@ -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: [],

View file

@ -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,