From b49a019cec73e387cc224fbd67b20ec1292bb5bd Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 25 Aug 2016 04:56:16 -0800 Subject: [PATCH] PLT-4004 fixing javascript error when switching teams (#3877) --- webapp/components/post_view/components/post_list.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx index a1fd7a3171..fc532c3732 100644 --- a/webapp/components/post_view/components/post_list.jsx +++ b/webapp/components/post_view/components/post_list.jsx @@ -290,7 +290,7 @@ export default class PostList extends React.Component { } let status = ''; - if (this.props.statuses) { + if (this.props.statuses && profile) { status = this.props.statuses[profile.id] || 'offline'; }