diff --git a/packages/composer-playground/src/app/editor/editor.component.ts b/packages/composer-playground/src/app/editor/editor.component.ts index 2c19435e46..695a1ce918 100644 --- a/packages/composer-playground/src/app/editor/editor.component.ts +++ b/packages/composer-playground/src/app/editor/editor.component.ts @@ -131,7 +131,7 @@ export class EditorComponent implements OnInit { let metaData = sourceBusinessNetworkDefinition.getMetadata().getREADME(); - let businessNetworkDefinition = new BusinessNetworkDefinition(sourceBusinessNetworkDefinition.getName() + '@' + sourceBusinessNetworkDefinition.getVersion(), sourceBusinessNetworkDefinition.getDescription(), metaData); + let businessNetworkDefinition = new BusinessNetworkDefinition(sourceBusinessNetworkDefinition.getName() + '@' + sourceBusinessNetworkDefinition.getVersion(), sourceBusinessNetworkDefinition.getDescription(), null, metaData); sourceBusinessNetworkDefinition.getModelManager().getModelFiles() .map((modelFile) => { return modelFile.getDefinitions(); diff --git a/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts b/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts index 67ef5cb34f..b12fb174e8 100644 --- a/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts +++ b/packages/composer-playground/src/app/services/samplebusinessnetwork.service.ts @@ -420,7 +420,7 @@ export class SampleBusinessNetworkService { let metaData = results[3]; let packageContents = results[4]; - let businessNetworkDefinition = new BusinessNetworkDefinition(packageContents.name + '@' + packageContents.version, packageContents.description, metaData.data); + let businessNetworkDefinition = new BusinessNetworkDefinition(null, null, packageContents, metaData.data); let modelManager = businessNetworkDefinition.getModelManager(); modelManager.addModelFiles(models);