Skip to content

Commit

Permalink
Merge pull request #2970 from kobotoolbox/revert-2755-2751-fail-produ…
Browse files Browse the repository at this point in the history
…ces-empty

Revert "Fix fail producing empty asset"
  • Loading branch information
jnm authored Jan 22, 2021
2 parents 3aa2ae3 + edd5e1e commit 34d9a05
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions jsapp/js/actions.es6
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,6 @@ actions.resources.createResource.listen(function(details){
});
});

/**
* @param {object} params
* @param {string} params.uid
*/
actions.resources.deleteAsset.listen(function(details, params={}){
dataInterface.deleteAsset(details)
.done(() => {
Expand Down
8 changes: 0 additions & 8 deletions jsapp/js/components/modalForms/projectSettings.es6
Original file line number Diff line number Diff line change
Expand Up @@ -519,10 +519,6 @@ class ProjectSettings extends React.Component {
});
},
(response) => {
// delete temporary asset
actions.resources.deleteAsset({uid: asset.uid});
this.setState({formAsset: false});

this.resetImportUrlButton();
const errLines = [];
errLines.push(t('Import Failed!'));
Expand Down Expand Up @@ -586,10 +582,6 @@ class ProjectSettings extends React.Component {
});
},
(response) => {
// delete temporary asset
actions.resources.deleteAsset({uid: asset.uid});
this.setState({formAsset: false});

this.setState({isUploadFilePending: false});
const errLines = [];
errLines.push(t('Import Failed!'));
Expand Down

0 comments on commit 34d9a05

Please sign in to comment.