|
|
|
@ -15,7 +15,7 @@ |
|
|
|
///
|
|
|
|
|
|
|
|
import { AfterViewInit, Component, forwardRef, Input, OnInit } from '@angular/core'; |
|
|
|
import { ControlValueAccessor, UntypedFormBuilder, UntypedFormGroup, NG_VALUE_ACCESSOR } from '@angular/forms'; |
|
|
|
import { ControlValueAccessor, NG_VALUE_ACCESSOR, UntypedFormBuilder, UntypedFormGroup } from '@angular/forms'; |
|
|
|
import { Store } from '@ngrx/store'; |
|
|
|
import { AppState } from '@core/core.state'; |
|
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
|
@ -145,7 +145,8 @@ export class EntitySelectComponent implements ControlValueAccessor, OnInit, Afte |
|
|
|
|
|
|
|
if (this.modelValue.entityType === AliasEntityType.CURRENT_TENANT |
|
|
|
|| this.modelValue.entityType === AliasEntityType.CURRENT_USER |
|
|
|
|| this.modelValue.entityType === AliasEntityType.CURRENT_USER_OWNER) { |
|
|
|
|| this.modelValue.entityType === AliasEntityType.CURRENT_USER_OWNER |
|
|
|
|| this.modelValue.entityType === AliasEntityType.CURRENT_RULE_NODE) { |
|
|
|
this.modelValue.id = NULL_UUID; |
|
|
|
} else if (this.modelValue.entityType === AliasEntityType.CURRENT_CUSTOMER && !this.modelValue.id) { |
|
|
|
this.modelValue.id = NULL_UUID; |
|
|
|
|