diff --git a/jsapp/js/actions.es6 b/jsapp/js/actions.es6 index be56c8c6ba..d0f84eceba 100644 --- a/jsapp/js/actions.es6 +++ b/jsapp/js/actions.es6 @@ -196,7 +196,7 @@ actions.resources.listTags.completed.listen(function(results){ } }); -actions.resources.updateAsset.listen(function(uid, values, params={}) { +actions.resources.updateAsset.listen(function(uid, values, params = {}) { const crossStorage = getCrossStorageClient(); crossStorage.onConnect() .then(function() { @@ -224,22 +224,6 @@ actions.resources.updateAsset.listen(function(uid, values, params={}) { }); } }); - - - dataInterface.patchAsset(uid, values) - .done((asset) => { - actions.resources.updateAsset.completed(asset); - if (typeof params.onComplete === 'function') { - params.onComplete(asset, uid, values); - } - notify(t('successfully updated')); - }) - .fail(function(resp){ - actions.resources.updateAsset.failed(resp); - if (params.onFailed) { - params.onFailed(resp); - } - }); }); actions.resources.deployAsset.listen(function(asset, redeployment, params={}){