From: KIRAN KASHALKAR Date: Tue, 4 Oct 2016 16:36:17 +0000 (-0700) Subject: RIFT-14793: Creating new Virtual Link in Viewport includes double quotes in ip profil... X-Git-Tag: v1.0.1~10^2~22 X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=commitdiff_plain;h=0f164f86cf5260028ed9b241c06a4ac243f77ca5;ds=sidebyside RIFT-14793: Creating new Virtual Link in Viewport includes double quotes in ip profile ref name Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js index a3708feb5..61ebe3d86 100644 --- a/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js +++ b/skyquake/plugins/launchpad/src/virtual_links/nsVirtualLinkCreateStore.js @@ -172,7 +172,8 @@ class NSVirtualLinkCreateStore { let vld = _.cloneDeep(this.vld); this.vldInitParamsTypes.map((vldInitParamType) => { if (currentVLDInitParamsType == vldInitParamType) { - vld[currentVLDInitParamsType] = e.target.value; + let value = e.target.nodeName == "SELECT" ? JSON.parse(e.target.value) : e.target.value; + vld[currentVLDInitParamsType] = value; } else { vld[vldInitParamType] && delete vld[vldInitParamType]; }