Skip to content

Commit

Permalink
fix: Remove null element from the list of social links (#2392)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvjain99 authored Nov 12, 2020
1 parent b8f4114 commit 2281d84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/fold_v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ function returnAttendees(attendeesData) {
}

function createSocialLinks(event) {
const sociallinks = Array.from(event['social-links']);
const sociallinks = Array.from(event['social-links']).filter(Boolean);

sociallinks.forEach((link) => {
link.show = true;
Expand Down Expand Up @@ -488,7 +488,7 @@ function createSocialLinks(event) {
}

function extractEventUrls(event, speakers, sponsors, reqOpts, next) {
const sociallinks = Array.from(event['social-links']);
const sociallinks = Array.from(event['social-links']).filter(Boolean);
let sociallink = '';
let featuresection = 0;
let sponsorsection = 0;
Expand Down

0 comments on commit 2281d84

Please sign in to comment.