diff options
author | 2020-04-09 13:58:07 +0530 | |
---|---|---|
committer | 2020-04-09 13:58:16 +0530 | |
commit | 97a301cd80080fbf8fd1cab06371f5179ed25660 (patch) | |
tree | ba4df7877035565401d35d9189c46dd737fe680b /cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts | |
parent | 54974ab95489cbe6a6e13078459f68d982601d47 (diff) |
CDS UI Save metadata bug fix
Issue-ID: CCSDK-2302
Change-Id: I9873c49c458ba57f1abd374b5223010c7fd46a4f
Signed-off-by: ezhil <ezhrajam@in.ibm.com>
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/blueprint/select-template/metadata/metadata.component.ts | 2 |
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"); |