@flexem/fc-gui 3.0.0-alpha.53 → 3.0.0-alpha.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -110,9 +110,8 @@ let WriteValueModalComponent = class WriteValueModalComponent {
110
110
  value = this.formatWriteValue();
111
111
  }
112
112
  }
113
- this.args.releasedVariableService.getVariablesWithValueTransform().subscribe(result => {
114
- const variablesTransform = result.filter(item => item.name === this.args.variableName);
115
- if (variablesTransform && variablesTransform.length && JSON.parse(variablesTransform[0].valueTransform).Type !== 0) {
113
+ this.args.releasedVariableService.getVariableWithValueTransform(this.variableName).subscribe(result => {
114
+ if (JSON.parse(result).Type !== 0) {
116
115
  this.isNumericalOperation = true;
117
116
  }
118
117
  this.onClosed({ value, showValue, enableNumericalOperation: this.enableNumericalOperation, isNumericalOperation: this.isNumericalOperation });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "main": "bundles/fc-gui.umd.js",
3
- "version": "3.0.0-alpha.53",
3
+ "version": "3.0.0-alpha.54",
4
4
  "module": "public_api.js",
5
5
  "typings": "public_api.d.ts",
6
6
  "license": "UNLICENSED",
@@ -1,4 +1,4 @@
1
1
  import { Observable } from 'rxjs';
2
2
  export interface ReleasedVariableService {
3
- getVariablesWithValueTransform(): Observable<any>;
3
+ getVariableWithValueTransform(variableName: any): Observable<any>;
4
4
  }