summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-02-10 00:35:41 +0000
committerMichael Morris <michael.morris@est.tech>2023-02-10 11:29:05 +0000
commit1f4a46768bd1cf1771b9f2a11cfc916fc59229de (patch)
tree81ec0ea13000f226f0a72966cedc7ab0f41b752f
parentf7dee08d8e56fc023aeb6f12aa2f688978545e01 (diff)
Fix major bug reported by Sonar
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: Ia87982bfbaca144c1188e38a0bfbe7e36563c09f Issue-ID: SDC-4381
-rw-r--r--catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts b/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts
index f9eaa1332d..d96c81ad17 100644
--- a/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts
+++ b/catalog-ui/src/app/ng2/pages/type-workspace/type-workspace-properties/type-workspace-properties.component.ts
@@ -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;