Do not select image when favorited

This commit is contained in:
viktorstrate
2021-07-18 16:32:49 +02:00
parent 10b2410db9
commit c3d2ef7b04
2 changed files with 0 additions and 14 deletions

View File

@@ -82,11 +82,6 @@ const PhotoGallery = ({ mediaState, dispatchMedia }: PhotoGalleryProps) => {
toggleFavoriteAction({
media,
markFavorite,
}).then(() => {
dispatchMedia({
type: 'selectImage',
index,
})
})
}}
clickPresent={() => {

View File

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