Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
LoginForm: use role.key instead of role.roleId because roleId is not …
Browse files Browse the repository at this point in the history
…unique

#1404
  • Loading branch information
teosarca committed Dec 4, 2017
1 parent 3f54f02 commit 66f9211
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/app/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ class LoginForm extends Component {
if(response.data.loginComplete){
return this.handleSuccess();
}
const roles = response.data.roles.map(role => ({
...role,
key: role.roleId
}));
const roles = response.data.roles;

this.setState({
roleSelect: true,
Expand Down

0 comments on commit 66f9211

Please sign in to comment.