remove wiping array of unblocked users in blocked-users component
This commit is contained in:
@@ -11,10 +11,6 @@ export default class BlockedUsers extends Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillReceiveProps() {
|
|
||||||
this.setState({ unblockedUsers: [] });
|
|
||||||
}
|
|
||||||
|
|
||||||
block(user) {
|
block(user) {
|
||||||
if (confirm('Do you want to block this user?')) {
|
if (confirm('Do you want to block this user?')) {
|
||||||
api.blockUser({ id: user.id }).then(() => {
|
api.blockUser({ id: user.id }).then(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user