NodeInfo::getModel expects the instance-model
[vid.git] / vid-webpack-master / src / app / drawingBoard / service-planning / objectsToTree / models / collectionResource / collectionResource.model.info.ts
index c9c718f..d144837 100644 (file)
@@ -28,12 +28,10 @@ export class CollectionResourceModelInfo implements ILevelNodeInfo{
 
   updateDynamicInputsDataFromModel = (currentModel): any => [];
 
-  getModel = (collectionResourceModelId: string, instance: CollectionResourceInstance, serviceHierarchy): CollectionResourceModel => {
-    const uniqueIdOrName = this._sharedTreeService.modelUniqueNameOrId(instance);
-    return new CollectionResourceModel(this._sharedTreeService.modelByIdentifiers(serviceHierarchy, this.name, uniqueIdOrName, collectionResourceModelId));
+  getModel = (instanceModel): CollectionResourceModel => {
+    return new CollectionResourceModel(instanceModel);
   };
 
-
   createInstanceTreeNode = (instance: any, model: any, parentModel: any, storeKey: string, serviceModelId: string): any => {
       let node = new CollectionResourceTreeNode(instance, model, storeKey);
       node.missingData = this.hasMissingData(instance, node, model.isEcompGeneratedNaming);