aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasraz <vasyl.razinkov@est.tech>2023-09-19 11:54:13 +0100
committerMichael Morris <michael.morris@est.tech>2023-09-20 08:59:20 +0000
commitd86cb2fa6591e7a5d3e5f2af3312d35def0e5837 (patch)
tree67f5c03ff05f265bcdaa932599bbb73e75f3d4e7
parent32dfc8645ec005aad8d89717e03d525ed97dd614 (diff)
Fix 'Unable to import service with missing ecompGeneratedNaming in metadata'-bug
Signed-off-by: Vasyl Razinkov <vasyl.razinkov@est.tech> Change-Id: I0f775fcf3c3a5e71d0067c3dcd03676ef4aa5f9a Issue-ID: SDC-4629
-rw-r--r--catalog-ui/src/app/models/components/service.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/catalog-ui/src/app/models/components/service.ts b/catalog-ui/src/app/models/components/service.ts
index 1c7c6b60b4..5bb42d1910 100644
--- a/catalog-ui/src/app/models/components/service.ts
+++ b/catalog-ui/src/app/models/components/service.ts
@@ -198,10 +198,9 @@ export class Service extends Component {
return 'services/';
}
-
public setComponentMetadata(componentMetadata: ComponentMetadata) {
super.setComponentMetadata(componentMetadata);
- this.ecompGeneratedNaming = componentMetadata.ecompGeneratedNaming;
+ this.ecompGeneratedNaming = componentMetadata.ecompGeneratedNaming != undefined && componentMetadata.ecompGeneratedNaming;
this.namingPolicy = componentMetadata.namingPolicy;
this.serviceType = componentMetadata.serviceType;
this.serviceRole = componentMetadata.serviceRole;