fix(web): avoid deleting empty album unexpectedly (#12175)

This commit is contained in:
Michel Heusschen
2024-08-31 19:24:38 +02:00
committed by GitHub
parent 40327ad987
commit 67468ea367
2 changed files with 27 additions and 2 deletions

View File

@@ -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);
}
});