Remove obsolete code that reloaded users upon org switching

pull/2605/head
Jared Scheib 2017-12-18 12:06:30 -08:00
parent ad98bcdbb0
commit c0cac2308d
1 changed files with 0 additions and 18 deletions

View File

@ -16,24 +16,6 @@ class UsersPage extends Component {
}
}
// // TODO: revisit this, possibly don't call setState if both are deep equal
// componentWillReceiveProps(nextProps) {
// const {meCurrentOrganization} = nextProps
//
// const hasChangedCurrentOrganization =
// meCurrentOrganization.id !== this.props.meCurrentOrganization.id
//
// if (hasChangedCurrentOrganization) {
// this.setState({isLoading: true})
// this.loadUsers()
// }
// }
// loadUsers = () => {
// // this.setState({isLoading: true})
// return loadUsersAsync(links.users)
// }
handleCreateUser = user => {
const {links, actions: {createUserAsync}} = this.props
createUserAsync(links.users, user)