fix eline and its panel display

Change-Id: I479a027748afc925575d18c447b8e9608e35d71f
diff --git a/xos/gui/src/app/components/vnaasMap.component.html b/xos/gui/src/app/components/vnaasMap.component.html
index 7869ad2..925cd59 100755
--- a/xos/gui/src/app/components/vnaasMap.component.html
+++ b/xos/gui/src/app/components/vnaasMap.component.html
@@ -64,7 +64,7 @@
           stroke-color="{{vm.colorLine(eline.backend_code)}}"
           stroke-opacity="1.0"
           stroke-weight="5"
-          on-click="vm.elinePanel({{eline}}, true)"
+          on-click="vm.elinePanel({{eline.id}}, true)"
         >
         </shape>
 
diff --git a/xos/gui/src/app/components/vnaasMap.component.ts b/xos/gui/src/app/components/vnaasMap.component.ts
index 4e50194..cca3b03 100755
--- a/xos/gui/src/app/components/vnaasMap.component.ts
+++ b/xos/gui/src/app/components/vnaasMap.component.ts
@@ -140,12 +140,11 @@
     self.map.showInfoWindow('uni-info', this);
   }
 
-  // fix this function!
-  public elinePanel(e: any, eline: any, exists: boolean) {
+  public elinePanel(e: any, elineid: any, exists: boolean) {
 
     self.panelOpen = !self.panelOpen;
     if (exists) {
-      self.eline = _.find(self.elines, {id: eline.id});
+      self.eline = _.find(self.elines, {id: elineid});
     }
     self.XosSidePanel.toggleComponent('elineSide', {vng: self}, false);
     if (!self.panelOpen && self.createMode) {