From be830ea118562956a4f5c3cf3b7d8521d17e6835 Mon Sep 17 00:00:00 2001 From: Roman Letsuk Date: Mon, 9 Sep 2024 16:43:26 +0300 Subject: [PATCH] FIO-8993: fixed component validation message --- projects/angular-formio/src/FormioBaseComponent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/angular-formio/src/FormioBaseComponent.ts b/projects/angular-formio/src/FormioBaseComponent.ts index 736a6d36..548d86f3 100644 --- a/projects/angular-formio/src/FormioBaseComponent.ts +++ b/projects/angular-formio/src/FormioBaseComponent.ts @@ -463,7 +463,7 @@ export class FormioBaseComponent implements OnInit, OnChanges, OnDestroy { components.forEach((comp) => comp.setCustomValidity(messageText, true)); this.alerts.addAlert({ type: 'danger', - message: message[index], + message: Array.isArray(message) ? message[index] : message, component, }); shouldErrorDisplay = false;