summaryrefslogtreecommitdiffstats
path: root/webapp/components/rhs_comment.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-05-18 11:15:17 -0400
committerChristopher Speller <crspeller@gmail.com>2016-05-18 11:15:17 -0400
commit02576f3d597b3c419df20f2a50aa6e587f1d98bb (patch)
tree548853238f55f311702889e7ac56d7b102099a03 /webapp/components/rhs_comment.jsx
parentd48be63513ec083c3073df5b7c50525d18bf0181 (diff)
downloadchat-02576f3d597b3c419df20f2a50aa6e587f1d98bb.tar.gz
chat-02576f3d597b3c419df20f2a50aa6e587f1d98bb.tar.bz2
chat-02576f3d597b3c419df20f2a50aa6e587f1d98bb.zip
PLT-1909 Fixed error rendering pending posts (#3041)
* Fixed error caused by checking if a post is a system message * Fixed trying to edit system posts when using the up arrow hotkey
Diffstat (limited to 'webapp/components/rhs_comment.jsx')
-rw-r--r--webapp/components/rhs_comment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/rhs_comment.jsx b/webapp/components/rhs_comment.jsx
index c4b62efcf..5bd138732 100644
--- a/webapp/components/rhs_comment.jsx
+++ b/webapp/components/rhs_comment.jsx
@@ -85,7 +85,7 @@ export default class RhsComment extends React.Component {
const isOwner = this.props.currentUser.id === post.user_id;
var isAdmin = TeamStore.isTeamAdminForCurrentTeam() || UserStore.isSystemAdminForCurrentUser();
- const isSystemMessage = post.type.startsWith(Constants.SYSTEM_MESSAGE_PREFIX);
+ const isSystemMessage = post.type && post.type.startsWith(Constants.SYSTEM_MESSAGE_PREFIX);
var dropdownContents = [];