diff options
author | Corey Hulen <corey@hulen.com> | 2017-05-11 05:10:47 -0700 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-05-11 08:10:47 -0400 |
commit | 8ec90d88faaf3ab57a6e7a0cdf46a376d6bed54b (patch) | |
tree | f2cd9f6fb65865245b2a84bfbfa2649ed92e4528 | |
parent | 23139678a0bf426bfc7f59e773f3f316faba5fb2 (diff) | |
download | chat-8ec90d88faaf3ab57a6e7a0cdf46a376d6bed54b.tar.gz chat-8ec90d88faaf3ab57a6e7a0cdf46a376d6bed54b.tar.bz2 chat-8ec90d88faaf3ab57a6e7a0cdf46a376d6bed54b.zip |
PLT-6561 Fixing javascript issue on compliance report (#6387)
-rw-r--r-- | webapp/components/audit_table.jsx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webapp/components/audit_table.jsx b/webapp/components/audit_table.jsx index 5d4bc4580..e07d6ca12 100644 --- a/webapp/components/audit_table.jsx +++ b/webapp/components/audit_table.jsx @@ -378,7 +378,10 @@ export function formatAuditInfo(audit, formatMessage) { if (userIdField.indexOf('user_id') >= 0) { userId = userIdField[userIdField.indexOf('user_id') + 1]; - username = UserStore.getProfile(userId).username; + var profile = UserStore.getProfile(userId); + if (profile) { + username = profile.username; + } } } |