summaryrefslogtreecommitdiffstats
path: root/webapp/stores/post_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores/post_store.jsx')
-rw-r--r--webapp/stores/post_store.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/stores/post_store.jsx b/webapp/stores/post_store.jsx
index 360b7cd72..6e312f67a 100644
--- a/webapp/stores/post_store.jsx
+++ b/webapp/stores/post_store.jsx
@@ -99,11 +99,11 @@ class PostStoreClass extends EventEmitter {
return null;
}
- const posts = postInfo.postList;
+ const postList = postInfo.postList;
let post = null;
- if (posts.posts.hasOwnProperty(postId)) {
- post = posts.posts[postId];
+ if (postList && postList.posts && postList.posts.hasOwnProperty(postId)) {
+ post = postList.posts[postId];
}
return post;