Fix major bug reported by Sonar 22/133222/2
authorvasraz <vasyl.razinkov@est.tech>
Fri, 10 Feb 2023 00:35:41 +0000 (00:35 +0000)
committerMichael Morris <michael.morris@est.tech>
Fri, 10 Feb 2023 11:29:05 +0000 (11:29 +0000)
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech>
Change-Id: Ia87982bfbaca144c1188e38a0bfbe7e36563c09f
Issue-ID: SDC-4381

catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts

index f9eaa13..d96c81a 100644 (file)
@@ -212,8 +212,6 @@ export class TypeWorkspacePropertiesComponent implements OnInit {
             if (property.defaultValue) {
                 if (!this.isTypeSimple(property.type) && typeof property.defaultValue === 'string') {
                     property.defaultValue = JSON.parse(property.defaultValue);
-                } else {
-                    property.defaultValue = property.defaultValue;
                 }
             }
             return property;