Merge pull request #12909 from ArtemDzhereleiko/AD/bug-fix/create-relation-node/validation

Fixed validation for target entity type create relation node
This commit is contained in:
Igor Kulikov 2025-03-13 19:24:31 +02:00 committed by GitHub
commit 0eca60ad99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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([]);