mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix: person update state inconsistencies (#13556)
This commit is contained in:
parent
7011231c4c
commit
274381deaa
1 changed files with 2 additions and 2 deletions
|
|
@ -201,7 +201,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await updatePerson({ id: person.id, personUpdateDto: { featureFaceAssetId: asset.id } });
|
person = await updatePerson({ id: person.id, personUpdateDto: { featureFaceAssetId: asset.id } });
|
||||||
notificationController.show({ message: $t('feature_photo_updated'), type: NotificationType.Info });
|
notificationController.show({ message: $t('feature_photo_updated'), type: NotificationType.Info });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error, $t('errors.unable_to_set_feature_photo'));
|
handleError(error, $t('errors.unable_to_set_feature_photo'));
|
||||||
|
|
@ -252,7 +252,7 @@
|
||||||
try {
|
try {
|
||||||
isEditingName = false;
|
isEditingName = false;
|
||||||
|
|
||||||
await updatePerson({ id: person.id, personUpdateDto: { name: personName } });
|
person = await updatePerson({ id: person.id, personUpdateDto: { name: personName } });
|
||||||
|
|
||||||
notificationController.show({
|
notificationController.show({
|
||||||
message: $t('change_name_successfully'),
|
message: $t('change_name_successfully'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue