From a0267d9515d995be3cdf393f00058be18cbb1337 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 23 Sep 2015 12:22:37 +0930 Subject: [PATCH] Add extra check to make sure post has been fully loaded Ref #295 --- js/forum/src/components/PostStream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/forum/src/components/PostStream.js b/js/forum/src/components/PostStream.js index ea0a97a72..394add1e7 100644 --- a/js/forum/src/components/PostStream.js +++ b/js/forum/src/components/PostStream.js @@ -181,7 +181,7 @@ class PostStream extends mixin(Component, evented) { .map(id => { const post = app.store.getById('posts', id); - return post && post.discussion() && post.user() !== false ? post : null; + return post && post.discussion() && post.user() !== false && post.canEdit() !== null ? post : null; }); }