current tenant fix
This commit is contained in:
parent
d5d0094c57
commit
c60909b142
@ -19,7 +19,8 @@ import { TbPopoverComponent } from '@shared/components/popover.component';
|
|||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import { charsWithNumRegex, noLeadTrailSpacesRegex } from '@shared/models/regex.constants';
|
import { charsWithNumRegex, noLeadTrailSpacesRegex } from '@shared/models/regex.constants';
|
||||||
import {
|
import {
|
||||||
ArgumentEntityType, ArgumentEntityTypeParamsMap,
|
ArgumentEntityType,
|
||||||
|
ArgumentEntityTypeParamsMap,
|
||||||
ArgumentEntityTypeTranslations,
|
ArgumentEntityTypeTranslations,
|
||||||
ArgumentType,
|
ArgumentType,
|
||||||
ArgumentTypeTranslations,
|
ArgumentTypeTranslations,
|
||||||
@ -117,6 +118,9 @@ export class CalculatedFieldArgumentPanelComponent implements OnInit {
|
|||||||
saveArgument(): void {
|
saveArgument(): void {
|
||||||
const { refEntityId, ...restConfig } = this.argumentFormGroup.value;
|
const { refEntityId, ...restConfig } = this.argumentFormGroup.value;
|
||||||
const value = (refEntityId.entityType === ArgumentEntityType.Current ? restConfig : { refEntityId, ...restConfig }) as CalculatedFieldArgumentValue;
|
const value = (refEntityId.entityType === ArgumentEntityType.Current ? restConfig : { refEntityId, ...restConfig }) as CalculatedFieldArgumentValue;
|
||||||
|
if (refEntityId.entityType === ArgumentEntityType.Tenant) {
|
||||||
|
refEntityId.id = this.tenantId;
|
||||||
|
}
|
||||||
this.argumentsDataApplied.emit({ value, index: this.index });
|
this.argumentsDataApplied.emit({ value, index: this.index });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user