fix: person update state inconsistencies (#13556)

pull/13560/head
Daniel Dietzler 2024-10-17 20:23:51 +07:00 committed by GitHub
parent 7011231c4c
commit 274381deaa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

@ -201,7 +201,7 @@
return;
}
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 });
} catch (error) {
handleError(error, $t('errors.unable_to_set_feature_photo'));
@ -252,7 +252,7 @@
try {
isEditingName = false;
await updatePerson({ id: person.id, personUpdateDto: { name: personName } });
person = await updatePerson({ id: person.id, personUpdateDto: { name: personName } });
notificationController.show({
message: $t('change_name_successfully'),