Skip to content

Commit

Permalink
Remove data manipulations from apply-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
philipnrmn committed Feb 22, 2016
1 parent ab6d64b commit a7e8b9e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/js/actions/AppsActions.js
Expand Up @@ -143,10 +143,6 @@ var AppsActions = {
},
applySettingsOnApp: function (appId, settings, isEditing = false,
force = false) {
// Version key is not allowed and not needed on settings object
var clonedSettings = Object.assign({}, settings);
delete clonedSettings.version;
delete clonedSettings.fetch;

// Used to mark current app config as stale
AppDispatcher.dispatch({
Expand All @@ -161,7 +157,7 @@ var AppsActions = {

this.request({
method: "PUT",
data: clonedSettings,
data: settings,
url: url
})
.success(function (app) {
Expand Down

0 comments on commit a7e8b9e

Please sign in to comment.