Fix unable to delete default value for a complex property
[sdc.git] / catalog-ui / src / app / view-models / forms / property-forms / component-property-form / property-form-view-model.ts
index fbd9408..17e8209 100644 (file)
@@ -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 = [];
             }