From ab72afdeabf0f93bc0bb9e4e9a124114b6baaac1 Mon Sep 17 00:00:00 2001
From: JoramWilander <jwawilander@gmail.com>
Date: Wed, 24 Feb 2016 07:59:33 -0500
Subject: Fix profiles issue with RHS

---
 web/react/components/posts_view.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/posts_view.jsx')

diff --git a/web/react/components/posts_view.jsx b/web/react/components/posts_view.jsx
index 3a84b51f0..1ea7711ea 100644
--- a/web/react/components/posts_view.jsx
+++ b/web/react/components/posts_view.jsx
@@ -145,7 +145,7 @@ export default class PostsView extends React.Component {
         const postCtls = [];
         let previousPostDay = new Date(0);
         const userId = UserStore.getCurrentId();
-        const profiles = this.props.profiles;
+        const profiles = this.props.profiles || {};
 
         let renderedLastViewed = false;
 
-- 
cgit v1.2.3-1-g7c22

