Skip to content

Commit

Permalink
update for Greg feedbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
SebinSong committed Nov 27, 2024
1 parent 8717b1d commit 1d121f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,14 +226,14 @@ export default {
id: randomHexString(12)
}
})
const initialIndex = allImageAttachments.findIndex(attachment => attachment.imgUrl === objectURL) || 0
const initialIndex = allImageAttachments.findIndex(attachment => attachment.imgUrl === objectURL)
sbp(
'okTurtles.events/emit', OPEN_MODAL, 'ImageViewerModal',
null,
{
images: allImageAttachments,
initialIndex
initialIndex: initialIndex === -1 ? 0 : initialIndex
}
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export default {
},
data () {
return {
touchMatchMedia: null,
ephemeral: {
currentIndex: 0,
isTouch: false
Expand Down

0 comments on commit 1d121f8

Please sign in to comment.