diff options
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/post_store.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx index 7b3d337f3..0d838a3df 100644 --- a/webapp/stores/post_store.jsx +++ b/webapp/stores/post_store.jsx @@ -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: [] + }); } } } |