🐛 Use a recursive merge in SettingsViewModel
Otherwise we will overwrite any changes to settings not represented as properties on the view model on settings save.
This commit is contained in:
1 parent
4bafd14bef
commit
9494db9568
1 file changed
+1
-1
@@ -1176,7 +1176,7 @@ $(function () {
|
||||
// map local observables based on our existing data
|
||||
var dataFromObservables = mapFromObservables(data, specialMappings);
|
||||
|
||||
data = _.extend(data, dataFromObservables);
|
||||
data = _.merge(data, dataFromObservables);
|
||||
return data;
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user