mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2026-03-10 13:15:05 +00:00
fixed unfollow user and topics
This commit is contained in:
@@ -93,7 +93,8 @@ class user extends Component {
|
||||
.then(res => {
|
||||
console.log("removed sub");
|
||||
this.setState({
|
||||
following: false
|
||||
following: false,
|
||||
myTopics: []
|
||||
});
|
||||
})
|
||||
.catch(function(err) {
|
||||
@@ -201,9 +202,8 @@ class user extends Component {
|
||||
} else {
|
||||
alertPromise = new Promise((resolve, reject) => {
|
||||
resolve();
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Promise.all([otherUserPromise, userPromise, posts, alertPromise])
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user