Fix orgs not deleting

pull/10616/head
Andrew Watkins 2018-04-04 11:25:51 -07:00
parent 4438d982aa
commit 4e62a9ac40
1 changed files with 3 additions and 2 deletions

View File

@ -20,13 +20,14 @@ class OrganizationsTableRow extends Component {
await meChangeOrganization(links.me, {organization: organization.id})
router.push('')
}
handleUpdateOrgName = newName => {
const {organization, onRename} = this.props
onRename(organization, newName)
}
handleDeleteOrg = organization => {
const {onDelete} = this.props
handleDeleteOrg = () => {
const {onDelete, organization} = this.props
onDelete(organization)
}