diff options
author | KrupaNagabhushan <krupa.nagabhushan@est.tech> | 2022-08-09 19:16:12 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2022-08-11 16:35:22 +0000 |
commit | 7952ce203e89fad3103b0ec17a41d240004c92e9 (patch) | |
tree | 61cc1a3cedcae3c69b4b95a6bc30c8b1cdd5254f /catalog-ui/src/app/directives | |
parent | 7e49c060458ff13b72bc997ffff9ea668e934676 (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/directives')
-rw-r--r-- | catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts index 76810040e6..857c62cc92 100644 --- a/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts +++ b/catalog-ui/src/app/directives/property-types/type-list/type-list-directive.ts @@ -86,11 +86,6 @@ export class TypeListDirective implements ng.IDirective { //reset valueObjRef when schema type is changed scope.$watchCollection('schemaProperty.type', (newData:any):void => { scope.isSchemaTypeDataType = this.DataTypesService.isDataTypeForSchemaType(scope.schemaProperty); - //insert 1 empty item dt by default - if (scope.isSchemaTypeDataType && (!scope.valueObjRef || !scope.valueObjRef.length)) { - scope.valueObjRef = scope.valueObjRef || []; - scope.valueObjRef.push({}); - } }); //when user brows between properties in "edit property form" |