fix(web): Album picker recent albums don't match sidebar (#20313)

- update album picker recent albums to show most recent 'updatedAt' instead of 'createdAt'. Matches sidebar.
This commit is contained in:
xCJPECKOVERx 2025-07-27 11:03:39 -04:00 committed by GitHub
parent ebd644eedd
commit ee4ae40d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@
onMount(async () => {
albums = await getAllAlbums({ shared: shared || undefined });
recentAlbums = albums.sort((a, b) => (new Date(a.createdAt) > new Date(b.createdAt) ? -1 : 1)).slice(0, 3);
recentAlbums = albums.sort((a, b) => (new Date(a.updatedAt) > new Date(b.updatedAt) ? -1 : 1)).slice(0, 3);
loading = false;
});