Skip to content

Commit

Permalink
MOSIP-32070 : input validation fix.
Browse files Browse the repository at this point in the history
Signed-off-by: sudeep <[email protected]>
  • Loading branch information
Sudeep7353 committed Apr 3, 2024
1 parent e89954e commit 3997a7d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/app/core/components/dialog/dialog.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,13 @@ export class DialogComponent implements OnInit {
(res: any) => {
this.dataLoaded = true;
if (res) {
this.closeMe();
window.location.reload();
if (res.errors && res.errors.length > 0) {
this.dialogRef.close();
Utils.showErrorMessage(this.resourceBundleJson, res.errors, this.dialog);
} else {
this.closeMe();
window.location.reload();
}
} else {
Utils.showErrorMessage(this.resourceBundleJson,
null,
Expand Down

0 comments on commit 3997a7d

Please sign in to comment.