diff options
Diffstat (limited to 'cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes')
-rw-r--r-- | cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/PackageCreationModes.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/PackageCreationModes.ts b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/PackageCreationModes.ts index 5b8db6b6d..6b80358fd 100644 --- a/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/PackageCreationModes.ts +++ b/cds-ui/designer-client/src/app/modules/feature-modules/packages/package-creation/creationModes/PackageCreationModes.ts @@ -20,9 +20,10 @@ export abstract class PackageCreationModes { } public static mapModeType(cbaPackage: CBAPackage) { - if (cbaPackage.metaData.mode.startsWith('Scripting')) { + console.log(cbaPackage.metaData.mode); + if (cbaPackage.metaData.mode.includes('Scripting')) { cbaPackage.metaData.mode = ModeType.Scripting; - } else if (cbaPackage.metaData.mode.startsWith('Designer')) { + } else if (cbaPackage.metaData.mode.includes('Designer') || cbaPackage.metaData.mode.includes('DEFAULT') ) { cbaPackage.metaData.mode = ModeType.Designer; } else { cbaPackage.metaData.mode = ModeType.Generic; |