From 20dcb9e066ebf1ab303e59cd59caa857fbba7676 Mon Sep 17 00:00:00 2001 From: Artem Dzhereleiko Date: Thu, 13 Mar 2025 11:57:38 +0200 Subject: [PATCH] UI: Fixed validation for target entity type create relation node --- .../rule-node/action/create-relation-config.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts b/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts index ceefb9ba55..1a1e611037 100644 --- a/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts +++ b/ui-ngx/src/app/modules/home/components/rule-node/action/create-relation-config.component.ts @@ -81,7 +81,7 @@ export class CreateRelationConfigComponent extends RuleNodeConfigurationComponen protected updateValidators(emitEvent: boolean) { const entityType: EntityType = this.createRelationConfigForm.get('entityType').value; - if (entityType) { + if (entityType && entityType !== EntityType.TENANT) { this.createRelationConfigForm.get('entityNamePattern').setValidators([Validators.required, Validators.pattern(/.*\S.*/)]); } else { this.createRelationConfigForm.get('entityNamePattern').setValidators([]);