summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");