Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
fix: Add clearExternalErrorsAsync if profile save is success
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis CI committed Jan 9, 2019
1 parent 96bb623 commit f8ca8e1
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ export class ProfilePanelComponent extends BasePromptPanelComponent<User> implem
}
onSave(user: User, saveData?: any) {
this.processing = false;
this.data = user;
this._authService.setCurrent(user);
this.form.clearExternalErrorsAsync().then(() => {
this.data = user;
this._authService.setCurrent(user);
});
}
onError(error: any) {
this._modalsService.error({
Expand Down

0 comments on commit f8ca8e1

Please # to comment.