From 97a301cd80080fbf8fd1cab06371f5179ed25660 Mon Sep 17 00:00:00 2001 From: ezhil Date: Thu, 9 Apr 2020 13:58:07 +0530 Subject: CDS UI Save metadata bug fix Issue-ID: CCSDK-2302 Change-Id: I9873c49c458ba57f1abd374b5223010c7fd46a4f Signed-off-by: ezhil --- .../blueprint/select-template/metadata/metadata.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cds-ui/client/src/app') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts index 35643ee62..5ee3cb0de 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts @@ -149,7 +149,7 @@ export class MetadataComponent implements OnInit { this.metadata = Object.assign({}, this.CBAMetadataForm.value); this.blueprint.metadata = this.metadata; this.filesData.forEach((fileNode) => { - if (fileNode.name.includes(this.blueprintName) && fileNode.name == this.entryDefinition) { + if (fileNode.name.includes(this.blueprintName.trim()) && fileNode.name == this.entryDefinition) { let tempNodeData = JSON.parse(fileNode.data); tempNodeData.metadata = this.blueprint.metadata; fileNode.data = JSON.stringify(tempNodeData, null, "\t"); -- cgit 1.2.3-korg