From b49a019cec73e387cc224fbd67b20ec1292bb5bd Mon Sep 17 00:00:00 2001 From: Corey Hulen Date: Thu, 25 Aug 2016 04:56:16 -0800 Subject: 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(-) (limited to 'webapp/components') diff --git a/webapp/components/post_view/components/post_list.jsx b/webapp/components/post_view/components/post_list.jsx index a1fd7a317..fc532c373 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'; } -- cgit v1.2.3-1-g7c22