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:
Alex
2023-04-18 11:26:04 -05:00
committed by GitHub
parent 8a421831ab
commit 975d23ee5c
42 changed files with 108 additions and 824 deletions

View File

@@ -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