Skip to content

Commit

Permalink
fix: error orgs not defined error
Browse files Browse the repository at this point in the history
  • Loading branch information
thelostone-mc committed Aug 14, 2020
1 parent 8ef161e commit 03496cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/assets/v2/js/user_card.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ let popoverData = [];
let controller = null;

const renderPopOverData = function(data) {
const unique_orgs = data.profile.orgs ? Array.from(new Set(data.profile.orgs)) : [];
const unique_orgs = data.profile && data.profile.orgs ? Array.from(new Set(data.profile.orgs)) : [];
let orgs = unique_orgs && unique_orgs.map((_organization, index) => {
if (index < 5) {
return `<a href="/${_organization}" class="link-current" data-toggle="tooltip" data-container=".popover-user-card" data-original-title="${_organization}">
Expand Down

0 comments on commit 03496cc

Please sign in to comment.