summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/view-models
diff options
context:
space:
mode:
authorKrupaNagabhushan <krupa.nagabhushan@est.tech>2022-08-09 19:16:12 +0100
committerMichael Morris <michael.morris@est.tech>2022-08-11 16:35:22 +0000
commit7952ce203e89fad3103b0ec17a41d240004c92e9 (patch)
tree61cc1a3cedcae3c69b4b95a6bc30c8b1cdd5254f /catalog-ui/src/app/view-models
parent7e49c060458ff13b72bc997ffff9ea668e934676 (diff)
Fix unable to delete default value for a complex property
Issue-ID: SDC-4127 Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech> Change-Id: Id63294cf01b0576fbb4d3d34ab11952b3579c24f
Diffstat (limited to 'catalog-ui/src/app/view-models')
-rw-r--r--catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts
index fbd9408ea8..17e82099ab 100644
--- a/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts
+++ b/catalog-ui/src/app/view-models/forms/property-forms/component-property-form/property-form-view-model.ts
@@ -425,7 +425,7 @@ export class PropertyFormViewModel {
this.$scope.onSchemaTypeChange = ():void => {
if (this.$scope.editPropertyModel.property.type == PROPERTY_TYPES.MAP) {
- this.$scope.myValue = {'': null};
+ this.$scope.myValue = {};
} else if (this.$scope.editPropertyModel.property.type == PROPERTY_TYPES.LIST) {
this.$scope.myValue = [];
}