From ac64cf38079f88ceb8c172b9e25152955dbe4366 Mon Sep 17 00:00:00 2001 From: ShaabanEltanany Date: Sun, 30 Aug 2020 14:03:53 +0200 Subject: fixing edit behavior Issue-ID: CCSDK-2336 Signed-off-by: ShaabanEltanany Change-Id: Ib344626d3f07cad91eb9a32cc660aad0e34f5191 --- .../packages/package-creation/creationModes/DesignerCreationMode.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cds-ui/designer-client/src') diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts index 58307005c..f739ceb2e 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts @@ -69,7 +69,9 @@ export class DesignerCreationMode extends PackageCreationModes { vlbDefinition.metadata = metadata; const files: Import[] = []; cbaPackage.definitions.imports.forEach((valueOfFile, key) => { - files.push({file: key}); + if (!key.includes(cbaPackage.metaData.name)) { + files.push({file: key}); + } }); console.log(vlbDefinition); vlbDefinition.imports = files; -- cgit 1.2.3-korg