Skip to content

Commit

Permalink
fix: person update state inconsistencies (#13556)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler authored Oct 17, 2024
1 parent 7011231 commit 274381d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down Expand Up @@ -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'),
Expand Down

0 comments on commit 274381d

Please sign in to comment.