Skip to content

Commit

Permalink
remove blank strings from the json before we send to Fabric to avoid …
Browse files Browse the repository at this point in the history
…issues with new properties being added to fabric
  • Loading branch information
jstrachan committed Nov 26, 2013
1 parent c549643 commit 6da5e67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hawtio-web/src/main/webapp/app/fabric/js/createContainer.ts
Expand Up @@ -268,6 +268,12 @@ module Fabric {

}

// remove possibly dodgy values if they are blank
angular.forEach(json, (value, key) => {
if (value === "") {
delete json[key];
}
});
delete json.saveJmxCredentials;

if ( json.number === 1 ) {
Expand Down

0 comments on commit 6da5e67

Please sign in to comment.