Skip to content

Commit e1f68f1

Browse files
committed
Refactor
1 parent 0f2a5c3 commit e1f68f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/dashboard/Settings/Collaborators.react.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,14 +233,11 @@ export default class Collaborators extends React.Component {
233233
}
234234
else if (this.state.toEdit) {
235235
let editedCollab = Object.assign({}, this.state.currentCollab);
236-
let newCollabs = Object.assign({}, this.props.collaborators);
237-
238236
editedCollab.featuresPermission = featuresPermission;
239-
newCollabs.map(c => {
237+
let newCollabs = this.props.collaborators.map(c => {
240238
if (c.userEmail === editedCollab.userEmail) c = editedCollab
241239
return c
242240
})
243-
console.log('newCollabs', newCollabs);
244241
this.props.onEdit(editedCollab, newCollabs);
245242
this.setState(
246243
{

0 commit comments

Comments
 (0)