RIFT-15418: Removal of gateway-address in input-params result in failed string
[osm/UI.git] / skyquake / plugins / launchpad / src / instantiate / instantiateStore.js
index 2e6e242..e779beb 100644 (file)
@@ -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});
                 }
             },