mirror of
https://github.com/immich-app/immich.git
synced 2026-03-09 03:37:22 +03:00
chore(web): generate API functions with a single argument (#2568)
This commit is contained in:
@@ -15,8 +15,11 @@
|
||||
const handleRemoveFromAlbum = async () => {
|
||||
if (window.confirm('Do you want to remove selected assets from the album?')) {
|
||||
try {
|
||||
const { data } = await api.albumApi.removeAssetFromAlbum(album.id, {
|
||||
assetIds: Array.from(getAssets()).map((a) => a.id)
|
||||
const { data } = await api.albumApi.removeAssetFromAlbum({
|
||||
id: album.id,
|
||||
removeAssetsDto: {
|
||||
assetIds: Array.from(getAssets()).map((a) => a.id)
|
||||
}
|
||||
});
|
||||
|
||||
album = data;
|
||||
|
||||
Reference in New Issue
Block a user