From 240c3191b5f293eacbf293ab14ac22a601ef8d30 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Sat, 19 Oct 2024 09:58:56 +0530 Subject: [PATCH] Apply collection sort only when showing normal collections --- web/apps/photos/src/pages/gallery.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx index 75b1145dbd..f5bcc8f8bf 100644 --- a/web/apps/photos/src/pages/gallery.tsx +++ b/web/apps/photos/src/pages/gallery.tsx @@ -672,10 +672,11 @@ export default function Gallery() { } }), ); - } - const sortAsc = activeCollection?.pubMagicMetadata?.data?.asc ?? false; - if (sortAsc) { - filteredFiles = sortFiles(filteredFiles, true); + const sortAsc = + activeCollection?.pubMagicMetadata?.data?.asc ?? false; + if (sortAsc) { + filteredFiles = sortFiles(filteredFiles, true); + } } dispatch({