summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCorey Hulen <corey@hulen.com>2017-05-11 05:10:47 -0700
committerJoram Wilander <jwawilander@gmail.com>2017-05-11 08:10:47 -0400
commit8ec90d88faaf3ab57a6e7a0cdf46a376d6bed54b (patch)
treef2cd9f6fb65865245b2a84bfbfa2649ed92e4528
parent23139678a0bf426bfc7f59e773f3f316faba5fb2 (diff)
downloadchat-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.jsx5
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;
+ }
}
}