mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 21:09:05 +00:00
Do not select image when favorited
This commit is contained in:
@@ -82,11 +82,6 @@ const PhotoGallery = ({ mediaState, dispatchMedia }: PhotoGalleryProps) => {
|
||||
toggleFavoriteAction({
|
||||
media,
|
||||
markFavorite,
|
||||
}).then(() => {
|
||||
dispatchMedia({
|
||||
type: 'selectImage',
|
||||
index,
|
||||
})
|
||||
})
|
||||
}}
|
||||
clickPresent={() => {
|
||||
|
||||
@@ -73,15 +73,6 @@ const TimelineGroupAlbum = ({
|
||||
toggleFavoriteAction({
|
||||
media,
|
||||
markFavorite,
|
||||
}).then(() => {
|
||||
dispatchMedia({
|
||||
type: 'selectImage',
|
||||
index: {
|
||||
album: albumIndex,
|
||||
date: dateIndex,
|
||||
media: index,
|
||||
},
|
||||
})
|
||||
})
|
||||
}}
|
||||
active={media.id === getActiveTimelineImage({ mediaState })?.id}
|
||||
|
||||
Reference in New Issue
Block a user