@@ -5,7 +5,7 @@ import Popup from 'reactjs-popup'
55import ProfileAttributeForm from '../components/profile-attribute-form'
66import Button from '../components/button'
77import Table from '../components/table'
8- import { addTeamMemberAttributes , getTeamMemberAttributes , modifyMemberAttribute , deleteMemberAttribute } from '../lib/profiles-api'
8+ import { addTeamMemberAttributes , getTeamMemberAttributes , modifyAttribute , deleteAttribute } from '../lib/profiles-api'
99import theme from '../styles/theme'
1010
1111export default class TeamEditProfile extends Component {
@@ -161,7 +161,7 @@ export default class TeamEditProfile extends Component {
161161 < ProfileAttributeForm
162162 initialValues = { this . state . rowToModify }
163163 onSubmit = { async ( attribute ) => {
164- await modifyMemberAttribute ( attribute . id , attribute )
164+ await modifyAttribute ( attribute . id , attribute )
165165 this . setState ( { isModifying : false } )
166166 return this . getAttributes ( )
167167 } }
@@ -196,7 +196,7 @@ export default class TeamEditProfile extends Component {
196196 ? < >
197197 < Button variant = 'danger' onClick = {
198198 async ( ) => {
199- await deleteMemberAttribute ( this . state . rowToDelete . id )
199+ await deleteAttribute ( this . state . rowToDelete . id )
200200 this . setState ( { isDeleting : false } )
201201 return this . getAttributes ( )
202202 }
0 commit comments