summaryrefslogtreecommitdiffstats
path: root/cds-ui/designer-client/src
diff options
context:
space:
mode:
authorShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-08-30 14:03:53 +0200
committerShaabanEltanany <shaaban.eltanany.ext@orange.com>2020-08-30 14:03:53 +0200
commitac64cf38079f88ceb8c172b9e25152955dbe4366 (patch)
tree5c84dbe1784d5ed3674636a0fe5d7e569b59daa7 /cds-ui/designer-client/src
parent65a445a2afd3ca2d1022d2e7c7fc71ec12698e87 (diff)
fixing edit behavior
Issue-ID: CCSDK-2336 Signed-off-by: ShaabanEltanany <shaaban.eltanany.ext@orange.com> Change-Id: Ib344626d3f07cad91eb9a32cc660aad0e34f5191
Diffstat (limited to 'cds-ui/designer-client/src')
-rw-r--r--cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/DesignerCreationMode.ts4
1 files changed, 3 insertions, 1 deletions
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;