mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(web): prevent fetching asset info twice (#8486)
This commit is contained in:
parent
0529076ed7
commit
66650f5944
8 changed files with 47 additions and 61 deletions
|
|
@ -80,17 +80,13 @@
|
|||
});
|
||||
}
|
||||
|
||||
const assetClickHandler = async (
|
||||
asset: AssetResponseDto,
|
||||
assetsInDateGroup: AssetResponseDto[],
|
||||
groupTitle: string,
|
||||
) => {
|
||||
const assetClickHandler = (asset: AssetResponseDto, assetsInDateGroup: AssetResponseDto[], groupTitle: string) => {
|
||||
if (isSelectionMode || $isMultiSelectState) {
|
||||
assetSelectHandler(asset, assetsInDateGroup, groupTitle);
|
||||
return;
|
||||
}
|
||||
|
||||
await assetViewingStore.setAssetId(asset.id);
|
||||
assetViewingStore.setAsset(asset);
|
||||
};
|
||||
|
||||
const handleSelectGroup = (title: string, assets: AssetResponseDto[]) => dispatch('select', { title, assets });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue