diff --git a/src/store/actions/edit.js b/src/store/actions/edit.js index daadaed..ace1dc1 100644 --- a/src/store/actions/edit.js +++ b/src/store/actions/edit.js @@ -62,19 +62,13 @@ exports.saveProfile = function(destPath, profile) { logger.info('Saving profile to "%s"...', destPath); - var cleanedProfile = _.cloneDeep(profile); - - Util.Tree.walk(cleanedProfile, function(item) { - delete item.selected; - delete item._key; - }); - - return Util.System.saveJSON(destPath, cleanedProfile) + return Util.System.saveJSON(destPath, profile) .then(function() { dispatch({ type: SAVE_PROFILE_SUCCESS, profile: profile, path: destPath }); logger.info('Profile saved.'); }) .catch(function(err) { + logger.error(err); dispatch({ type: SAVE_PROFILE_FAILED, error: err }); }) ;