Correction for #3692, cloneDeep() must be used otherwise defaultConfig gets overwritten.
This commit is contained in:
parent
94a0ffa02e
commit
52faba1abd
1 changed files with 1 additions and 1 deletions
|
|
@ -105,7 +105,7 @@ angular.module('copayApp.services').factory('configService', function(storageSer
|
||||||
};
|
};
|
||||||
|
|
||||||
root.set = function(newOpts, cb) {
|
root.set = function(newOpts, cb) {
|
||||||
var config = lodash.clone(defaultConfig);
|
var config = lodash.cloneDeep(defaultConfig);
|
||||||
storageService.getConfig(function(err, oldOpts) {
|
storageService.getConfig(function(err, oldOpts) {
|
||||||
if (lodash.isString(oldOpts)) {
|
if (lodash.isString(oldOpts)) {
|
||||||
oldOpts = JSON.parse(oldOpts);
|
oldOpts = JSON.parse(oldOpts);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue