Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Apply collection sort only when showing normal collections

Manav Rathi240c3191b5f2
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({