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}) await meChangeOrganization(links.me, {organization: organization.id})
router.push('') router.push('')
} }
handleUpdateOrgName = newName => { handleUpdateOrgName = newName => {
const {organization, onRename} = this.props const {organization, onRename} = this.props
onRename(organization, newName) onRename(organization, newName)
} }
handleDeleteOrg = organization => { handleDeleteOrg = () => {
const {onDelete} = this.props const {onDelete, organization} = this.props
onDelete(organization) onDelete(organization)
} }