Skip to content

Commit

Permalink
fix: Strictify live photo condition to prevent false positive
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Chemineau <louis@chmn.me>
  • Loading branch information
artonge committed Aug 27, 2024
1 parent 5e1c6ff commit 62927a2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Images.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ export default {
}
},
livePhoto() {
if (this.metadataFilesLivePhoto === undefined) {
return undefined
}

return findLivePhotoPeerFromFileId(this.metadataFilesLivePhoto, this.fileList)
},
livePhotoSrc() {
Expand Down

0 comments on commit 62927a2

Please sign in to comment.