mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(web): file uploading error in album page (#550)
* feat(web): show upload error notification * fix(web): album upload issue
This commit is contained in:
parent
75d2d82d05
commit
f5f00e0f6c
2 changed files with 26 additions and 9 deletions
|
|
@ -44,12 +44,15 @@
|
|||
if (uploadAssets.length == uploadAssetsCount) {
|
||||
// Filter assets that are already in the album
|
||||
const assetsToAdd = uploadAssets.filter(
|
||||
(asset) => !assetsInAlbum.some((a) => a.id === asset)
|
||||
(asset) => !!asset && !assetsInAlbum.some((a) => a.id === asset)
|
||||
);
|
||||
|
||||
// Add the just uploaded assets to the album
|
||||
dispatch('create-album', {
|
||||
assets: assetsToAdd
|
||||
});
|
||||
if (assetsToAdd.length) {
|
||||
dispatch('create-album', {
|
||||
assets: assetsToAdd
|
||||
});
|
||||
}
|
||||
|
||||
// Clean up states.
|
||||
albumUploadAssetStore.asset.set([]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue