summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src
diff options
context:
space:
mode:
authorezhil <ezhrajam@in.ibm.com>2020-04-09 13:58:07 +0530
committerDan Timoney <dtimoney@att.com>2020-04-09 13:42:24 +0000
commit24a436b2f4800048f3010c34f22cf8dc8db9fe5d (patch)
treed104915c096b2e43efd7302a2de22825f96df649 /cds-ui/client/src
parent4fb17591abf625141416fb0a015b02d3dc350c3b (diff)
CDS UI Save metadata bug fix
Issue-ID: CCSDK-2302 Change-Id: I9873c49c458ba57f1abd374b5223010c7fd46a4f Signed-off-by: ezhil <ezhrajam@in.ibm.com> (cherry picked from commit 97a301cd80080fbf8fd1cab06371f5179ed25660)
Diffstat (limited to 'cds-ui/client/src')
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts2
1 files changed, 1 insertions, 1 deletions
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");