From: KIRAN KASHALKAR Date: Mon, 23 Jan 2017 18:41:12 +0000 (-0500) Subject: RIFT-15418: Removal of gateway-address in input-params result in failed string X-Git-Tag: v1.1.0~14 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=d51304f9dfd018d778ed2f52fc3c4651c5bbe416;p=osm%2FUI.git RIFT-15418: Removal of gateway-address in input-params result in failed string Signed-off-by: KIRAN KASHALKAR --- diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx b/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx index 0e5fa1fbb..5681851a1 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateParameters.jsx @@ -44,52 +44,53 @@ class Instantiate extends Component { - + /> + ) } diff --git a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js index 2e6e24236..e779beb16 100644 --- a/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js +++ b/skyquake/plugins/launchpad/src/instantiate/instantiateStore.js @@ -484,6 +484,11 @@ class LaunchNetworkServiceStore { let value = e.target.nodeName == "SELECT" ? JSON.parse(e.target.value) : e.target.value; self.ipProfiles[i]['ip-profile-params'][key] = value; + if (value == '') { + // Don't send this key + delete self.ipProfiles[i]['ip-profile-params'][key]; + } + self.setState({ipProfiles:self.ipProfiles}); } },