mirror of
https://github.com/immich-app/immich.git
synced 2026-03-09 19:57:41 +03:00
fix(web): empty album is not auto deleted (#2283)
* fix(web): empty album is not auto deleted * regenerate api * fix test
This commit is contained in:
@@ -53,11 +53,7 @@ export const useAlbums = (props: AlbumsProps) => {
|
||||
}
|
||||
|
||||
async function deleteAlbum(album: AlbumResponseDto): Promise<void> {
|
||||
try {
|
||||
await api.albumApi.deleteAlbum(album.id);
|
||||
} catch {
|
||||
// Do nothing?
|
||||
}
|
||||
await api.albumApi.deleteAlbum(album.id);
|
||||
}
|
||||
|
||||
async function showAlbumContextMenu(
|
||||
@@ -107,6 +103,7 @@ export const useAlbums = (props: AlbumsProps) => {
|
||||
contextMenuPosition,
|
||||
loadAlbums,
|
||||
createAlbum,
|
||||
deleteAlbum,
|
||||
showAlbumContextMenu,
|
||||
closeAlbumContextMenu,
|
||||
deleteSelectedContextAlbum
|
||||
|
||||
Reference in New Issue
Block a user