Skip to content

Commit

Permalink
Removed update fallback to create on 404
Browse files Browse the repository at this point in the history
  • Loading branch information
andersw-lolo committed Jun 12, 2023
1 parent 2709112 commit 84ae3e9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/providers/dataProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ export default apiUrl => {
.then(res => {
return { data: res.json };
})
.catch(err => {
// Ugly hack for import overwrite
if (err.status === 404) return create(resource, params);
throw err;
});
},

/**
Expand Down

0 comments on commit 84ae3e9

Please sign in to comment.