Empty arguments fix
This commit is contained in:
parent
dd8ce35b86
commit
c82b6c8c45
@ -34,7 +34,7 @@ import {
|
||||
import { noLeadTrailSpacesRegex } from '@shared/models/regex.constants';
|
||||
import { AttributeScope } from '@shared/models/telemetry/telemetry.models';
|
||||
import { EntityType } from '@shared/models/entity-type.models';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { map, startWith } from 'rxjs/operators';
|
||||
import { isObject } from '@core/utils';
|
||||
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
||||
import { ScriptLanguage } from '@shared/models/rule-node.models';
|
||||
@ -63,6 +63,7 @@ export class CalculatedFieldDialogComponent extends DialogComponent<CalculatedFi
|
||||
|
||||
functionArgs$ = this.configFormGroup.valueChanges
|
||||
.pipe(
|
||||
startWith(this.data.value?.configuration ?? {}),
|
||||
map(configuration => isObject(configuration?.arguments) ? Object.keys(configuration.arguments) : [])
|
||||
);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user