diff options
Diffstat (limited to 'catalog-ui/src/app/models/attributes.ts')
-rw-r--r-- | catalog-ui/src/app/models/attributes.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/catalog-ui/src/app/models/attributes.ts b/catalog-ui/src/app/models/attributes.ts index 9e5828ae69..80af540ef3 100644 --- a/catalog-ui/src/app/models/attributes.ts +++ b/catalog-ui/src/app/models/attributes.ts @@ -88,6 +88,9 @@ export class AttributeModel implements IAttributeModel { this.resourceInstanceUniqueId = attribute.resourceInstanceUniqueId; this.readonly = attribute.readonly; this.valueUniqueUid = attribute.valueUniqueUid; + } else { + this.defaultValue = ''; + this.hidden = false; } if (!this.schema || !this.schema.property) { @@ -100,7 +103,7 @@ export class AttributeModel implements IAttributeModel { this.convertValueToView(); } - public convertToServerObject:Function = ():string => { + public convertToServerObject():string { if (this.defaultValue && this.type === 'map') { this.defaultValue = '{' + this.defaultValue + '}'; } |