Fix not being able to remove networks from user config

This commit is contained in:
Pavel Djundik 2016-04-02 11:16:31 +03:00
parent 2201e2b941
commit ad3bdef542

View File

@ -101,7 +101,7 @@ ClientManager.prototype.updateUser = function(name, opts) {
try {
user = this.readUserConfig(name);
_.merge(user, opts);
_.assign(user, opts);
fs.writeFileSync(
path,
JSON.stringify(user, null, " ")