Browse Source

Fixed Calculated Field test script running against stale entity values instead of current form input

pull/15897/head
Maksym Tsymbarov 2 weeks ago
committed by Vladyslav Prykhodko
parent
commit
1302a67ee8
  1. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/calculated-field.component.ts

2
ui-ngx/src/app/modules/home/components/calculated-fields/calculated-field.component.ts

@ -132,7 +132,7 @@ export class CalculatedFieldComponent extends EntityComponent<CalculatedFieldsTa
onTestScript(expression?: string): Observable<string> {
return this.cfFormService.testScript(
this.entity?.id?.id,
this.entityValue,
this.entityFormValue(),
this.entitiesTableConfig.getTestScriptDialog.bind(this.entitiesTableConfig),
this.destroyRef,
expression

Loading…
Cancel
Save