Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Jewett committed May 31, 2018
1 parent f4131a4 commit 5ac64a7
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,7 @@ class UserManagementContainer extends Component {
});
}
//data structure we delete, but server we do a put with an empty role, which will "remove" it from the db
//really what happens is since there is no role for the user, the user won't be queried
deleteData = (deleteData) => {
delete deleteData["role"];
deleteData["user_group_id"] = null;
window.axios.delete("/api/users/" + deleteData.id, deleteData)
.then((response) => {
if (response.data.status === "error")
Expand Down

0 comments on commit 5ac64a7

Please sign in to comment.