From c3d2ef7b046187f560e943aaf3c5b90037bcf125 Mon Sep 17 00:00:00 2001 From: viktorstrate Date: Sun, 18 Jul 2021 16:32:49 +0200 Subject: [PATCH] Do not select image when favorited --- ui/src/components/photoGallery/PhotoGallery.tsx | 5 ----- ui/src/components/timelineGallery/TimelineGroupAlbum.tsx | 9 --------- 2 files changed, 14 deletions(-) diff --git a/ui/src/components/photoGallery/PhotoGallery.tsx b/ui/src/components/photoGallery/PhotoGallery.tsx index b3de5f58..c68df314 100644 --- a/ui/src/components/photoGallery/PhotoGallery.tsx +++ b/ui/src/components/photoGallery/PhotoGallery.tsx @@ -82,11 +82,6 @@ const PhotoGallery = ({ mediaState, dispatchMedia }: PhotoGalleryProps) => { toggleFavoriteAction({ media, markFavorite, - }).then(() => { - dispatchMedia({ - type: 'selectImage', - index, - }) }) }} clickPresent={() => { diff --git a/ui/src/components/timelineGallery/TimelineGroupAlbum.tsx b/ui/src/components/timelineGallery/TimelineGroupAlbum.tsx index c0108b1f..7ac6578c 100644 --- a/ui/src/components/timelineGallery/TimelineGroupAlbum.tsx +++ b/ui/src/components/timelineGallery/TimelineGroupAlbum.tsx @@ -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}