From 6621458990eab5c4858982025dc7bcf43ce62281 Mon Sep 17 00:00:00 2001 From: Shilo Date: Mon, 11 Nov 2024 12:36:38 +1000 Subject: [PATCH] Fixed: removed the "status" flag requirements for displaying error messages from the catch block --- angular-legacy/dmp/app/dmp-form.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/angular-legacy/dmp/app/dmp-form.component.ts b/angular-legacy/dmp/app/dmp-form.component.ts index 1c22913c2..49bfc0596 100644 --- a/angular-legacy/dmp/app/dmp-form.component.ts +++ b/angular-legacy/dmp/app/dmp-form.component.ts @@ -201,9 +201,7 @@ export class DmpFormComponent extends LoadableComponent { }).catch((err:any) => { console.log("Error loading form..."); console.log(err); - if (err.status == false) { - this.criticalError = err.message; - } + this.criticalError = err.message; this.setLoading(false); }); });