From 2510684bf7a5c8799dd36468f61454645c444cdb Mon Sep 17 00:00:00 2001 From: Thomas Laroche Date: Sat, 1 Mar 2025 21:07:19 +0100 Subject: [PATCH] fix(web): unable to download live photo as anonymous user (#16455) --- web/src/lib/utils/asset-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/lib/utils/asset-utils.ts b/web/src/lib/utils/asset-utils.ts index 70f5c5f8f2..fa9725aa24 100644 --- a/web/src/lib/utils/asset-utils.ts +++ b/web/src/lib/utils/asset-utils.ts @@ -229,7 +229,7 @@ export const downloadFile = async (asset: AssetResponseDto) => { if (asset.livePhotoVideoId) { const motionAsset = await getAssetInfo({ id: asset.livePhotoVideoId, key: getKey() }); - if (!isAndroidMotionVideo(motionAsset) || get(preferences).download.includeEmbeddedVideos) { + if (!isAndroidMotionVideo(motionAsset) || get(preferences)?.download.includeEmbeddedVideos) { assets.push({ filename: motionAsset.originalFileName, id: asset.livePhotoVideoId,