mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 09:15:44 +03:00
fix(web): avoid deleting empty album unexpectedly (#12175)
This commit is contained in:
@@ -419,8 +419,8 @@
|
||||
}
|
||||
};
|
||||
|
||||
onNavigate(async () => {
|
||||
if (album.assetCount === 0 && !album.albumName) {
|
||||
onNavigate(async ({ to }) => {
|
||||
if (!isAlbumsRoute(to?.route.id) && album.assetCount === 0 && !album.albumName) {
|
||||
await deleteAlbum(album);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user