summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r--catalog-ui/src/app/utils/service-data-type-reader.ts11
1 files changed, 6 insertions, 5 deletions
diff --git a/catalog-ui/src/app/utils/service-data-type-reader.ts b/catalog-ui/src/app/utils/service-data-type-reader.ts
index 9686f3d40e..dbb550894a 100644
--- a/catalog-ui/src/app/utils/service-data-type-reader.ts
+++ b/catalog-ui/src/app/utils/service-data-type-reader.ts
@@ -35,10 +35,11 @@ export class ServiceDataTypeReader {
const result = <String>reader.result;
const loadedContent = load(result);
console.log("Readed content: " + loadedContent);
- this.readName(this.getDataType(loadedContent));
- this.readDerivedFrom(this.getDataType(loadedContent));
- this.readDescription(this.getDataType(loadedContent));
- this.readProperties(this.getDataType(loadedContent));
+ const dataType = this.getDataType(loadedContent);
+ this.readName(dataType);
+ this.readDerivedFrom(dataType);
+ this.readDescription(dataType);
+ this.readProperties(dataType);
resolve(this.serviceDataType);
} catch (error) {
reject(error);
@@ -201,4 +202,4 @@ export class ServiceDataTypeReader {
value:constraintValue
}
}
-} \ No newline at end of file
+}