Allow new Organization names to include spaces
parent
88bd894903
commit
17e3641ae4
|
@ -28,7 +28,7 @@ class OrganizationsTableRowNew extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputChange = e => {
|
handleInputChange = e => {
|
||||||
this.setState({name: e.target.value.trim()})
|
this.setState({name: e.target.value})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleInputFocus = e => {
|
handleInputFocus = e => {
|
||||||
|
@ -39,7 +39,7 @@ class OrganizationsTableRowNew extends Component {
|
||||||
const {onCreateOrganization} = this.props
|
const {onCreateOrganization} = this.props
|
||||||
const {name, defaultRole} = this.state
|
const {name, defaultRole} = this.state
|
||||||
|
|
||||||
onCreateOrganization({name, defaultRole})
|
onCreateOrganization({name: name.trim(), defaultRole})
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChooseDefaultRole = role => {
|
handleChooseDefaultRole = role => {
|
||||||
|
|
Loading…
Reference in New Issue