Remove getPosts request after deleting a post (#3905)
Этот коммит содержится в:
коммит произвёл
enahum
родитель
391926e9a7
Коммит
3e14e8b5ab
@@ -216,6 +216,11 @@ class PostStoreClass extends EventEmitter {
|
||||
if (combinedPosts.order.indexOf(pid) === -1 && newPosts.order.indexOf(pid) !== -1) {
|
||||
combinedPosts.order.push(pid);
|
||||
}
|
||||
} else if (combinedPosts.posts.hasOwnProperty(pid)) {
|
||||
combinedPosts.posts[pid] = Object.assign({}, np, {
|
||||
state: Constants.POST_DELETED,
|
||||
filenames: []
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user