fix: Refresh photo after updating featured photo (#21971)

fix: Refresh person photo after setting featured photo

Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
Stewart Rand
2025-09-17 12:22:26 -03:00
committed by GitHub
parent a8f683ed15
commit 26e0cb3eb4
5 changed files with 27 additions and 4 deletions

View File

@@ -22,6 +22,7 @@
import {
AssetJobName,
AssetTypeEnum,
getAssetInfo,
getAllAlbums,
getStack,
runAssetJobs,
@@ -339,6 +340,11 @@
stack = action.stack;
break;
}
case AssetAction.SET_PERSON_FEATURED_PHOTO: {
const assetInfo = await getAssetInfo({ id: asset.id });
asset = { ...asset, people: assetInfo.people };
break;
}
case AssetAction.KEEP_THIS_DELETE_OTHERS:
case AssetAction.UNSTACK: {
closeViewer();