summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2016-08-25 04:56:16 -0800
committerHarrison Healey <harrisonmhealey@gmail.com>2016-08-25 08:56:16 -0400
commitb49a019cec73e387cc224fbd67b20ec1292bb5bd (patch)
tree87ddcbda30621bf56ca0d66210bdac70121d0ed5 /webapp/components
parent839f1ad444849db1dd18c9da0c3b7380b355a047 (diff)
downloadchat-b49a019cec73e387cc224fbd67b20ec1292bb5bd.tar.gz
chat-b49a019cec73e387cc224fbd67b20ec1292bb5bd.tar.bz2
chat-b49a019cec73e387cc224fbd67b20ec1292bb5bd.zip
PLT-4004 fixing javascript error when switching teams (#3877)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/post_view/components/post_list.jsx2
1 files changed, 1 insertions, 1 deletions
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';
}