Skip to content

Commit a44c551

Browse files
author
Nicolas
authored
Merge pull request Cooya#5 from lveillard/patch-1
Fix: Companies without tag not appearing
2 parents 1e107f9 + 9873f92 commit a44c551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scraper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function processCompanyPage(item, result) {
8585
industries[item.entityUrn] = item.localizedName;
8686
else if (item.$type == 'com.linkedin.voyager.common.FollowingInfo')
8787
followingItems[item.entityUrn] = item.followerCount;
88-
else if (item.$type == 'com.linkedin.voyager.organization.Company' && item.tagline) {
88+
else if (item.$type == 'com.linkedin.voyager.organization.Company' && (item.tagline || item.tagline === null) {
8989
result.name = item.name;
9090
result.tagline = item.tagline;
9191
result.description = item.description;

0 commit comments

Comments
 (0)