From 0864a22ae604219f87dfa9b4833026b85bb2af6e Mon Sep 17 00:00:00 2001 From: Kruthi Bhat Date: Tue, 18 Aug 2020 00:35:12 +0530 Subject: Fix for restricting drag & drop for base module Issue-ID: VID-861 VF Module to stay at Index 0 (first position) - Not Moveable. Change-Id: Iea354295a460c407cfbc6a3c6bde0b496c24ce6c Signed-off-by: Kruthi Bhat --- .../drawing-board-tree/dragAndDrop/dragAndDrop.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/dragAndDrop/dragAndDrop.service.ts b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/dragAndDrop/dragAndDrop.service.ts index 2f86b0aa8..c3af11ebf 100644 --- a/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/dragAndDrop/dragAndDrop.service.ts +++ b/vid-webpack-master/src/app/drawingBoard/service-planning/drawing-board-tree/dragAndDrop/dragAndDrop.service.ts @@ -20,7 +20,7 @@ export class DragAndDropService { ***********************************************************************************************/ isBaseModule(serviceInstanceId, from): boolean { try { - let baseModuleFlag = this.store.getState().service.serviceHierarchy[serviceInstanceId].vnfs[from.parent.data.vnfStoreKey].vfModules[from.data.modelName].properties.baseModule; + let baseModuleFlag = this.store.getState().service.serviceHierarchy[serviceInstanceId].vnfs[from.parent.data.modelName].vfModules[from.data.modelName].properties.baseModule; return (baseModuleFlag != 'undefined' ? baseModuleFlag : false); }catch(e) { return false; -- cgit 1.2.3-korg