mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
fix(web): unstacking issues (#4792)
* Fix typo * Restore asset store consistency after unstacking * Fix aspect ratio after unstacking
This commit is contained in:
@@ -317,7 +317,7 @@ export class AssetStore {
|
||||
return bucket.assets[Math.floor(Math.random() * bucket.assets.length)] || null;
|
||||
}
|
||||
|
||||
updateAsset(_asset: AssetResponseDto) {
|
||||
updateAsset(_asset: AssetResponseDto, recalculate = false) {
|
||||
const asset = this.assets.find((asset) => asset.id === _asset.id);
|
||||
if (!asset) {
|
||||
return;
|
||||
@@ -325,7 +325,7 @@ export class AssetStore {
|
||||
|
||||
Object.assign(asset, _asset);
|
||||
|
||||
this.emit(false);
|
||||
this.emit(recalculate);
|
||||
}
|
||||
|
||||
removeAssets(ids: string[]) {
|
||||
|
||||
Reference in New Issue
Block a user