summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts')
-rw-r--r--catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts14
1 files changed, 1 insertions, 13 deletions
diff --git a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
index 9f7f4230ee..8844cf65bb 100644
--- a/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
+++ b/catalog-ui/src/app/ng2/pages/interface-operation/operation-creator/param-row/param-row.component.ts
@@ -1,5 +1,4 @@
import {Component, Input} from '@angular/core';
-import {PROPERTY_DATA} from "app/utils";
import {DataTypeService} from "app/ng2/services/data-type.service";
import {OperationParameter} from 'app/models';
import {DropdownValue} from "app/ng2/components/ui/form-components/dropdown/ui-element-dropdown.component";
@@ -22,19 +21,8 @@ export class ParamRowComponent {
propTypeEnum: Array<String> = [];
filteredInputProps: Array<DropdownValue> = [];
- constructor(private dataTypeService:DataTypeService) {}
-
ngOnInit() {
- const types = PROPERTY_DATA.TYPES.concat(
- _.filter(
- Object.keys(this.dataTypeService.getAllDataTypes()),
- type => PROPERTY_DATA.TYPES.indexOf(type) === -1
- )
- );
- this.propTypeEnum = _.filter(
- types,
- type => _.toArray(this.propTypes).indexOf(type) > -1
- );
+ this.propTypeEnum = _.uniq(_.toArray(this.propTypes));
this.onChangeType();
}