Skip to content

Commit

Permalink
Removing deleted uploads no matter the response (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidQuartz authored Mar 11, 2022
1 parent 457800f commit 7939c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode_mapstore_client/client/js/routes/UploadDataset.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ function ProcessingUploadList({

function handleDelete({ id, deleteUrl }) {
axios.get(deleteUrl)
.then(() => {
.finally(() => {
if (isMounted.current) {
setDeletedIds((ids) => [...ids, id]);
onChange(pendingUploads.filter(upload => upload.id !== id));
Expand Down

0 comments on commit 7939c69

Please sign in to comment.