diff options
Diffstat (limited to 'cds-ui')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts index cdf89efb9..232590c62 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/package-creation-extraction.service.ts @@ -80,7 +80,7 @@ export class PackageCreationExtractionService { public setImports(filename: string, fileData: any, packageName: string) { console.log(filename); - if (filename.includes(packageName)) { + if (filename.includes('Definitions/' + packageName.trim() + '.json')) { let definition = new VlbDefinition(); definition = fileData as VlbDefinition; definition = JSON.parse(fileData); @@ -92,6 +92,7 @@ export class PackageCreationExtractionService { mapOfCustomKeys.set(metadataKey + '', definition.metadata[metadataKey + '']); } } + this.packageCreationStore.changeDslDefinition(dslDefinition); this.packageCreationStore.setCustomKeys(mapOfCustomKeys); this.setPackageDescription(definition.metadata.template_description); |