Skip to content

Commit 1e6894a

Browse files
FIO-10165: Fix issue about the informative error messages are missing in FMG and FVP (#1140)
1 parent bfc8600 commit 1e6894a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/angular-formio/src/FormioBaseComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy {
508508
.saveSubmission(submission)
509509
.subscribe(
510510
(sub: {}) => this.onSubmit(sub, true),
511-
err => this.onError(err)
511+
err => this.onError((err?.error || err))
512512
);
513513
} else {
514514
this.onSubmit(submission, false);

0 commit comments

Comments
 (0)