Skip to content

Commit

Permalink
Avoid failure if affiliation retrieval fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom committed Sep 13, 2017
1 parent 60f9355 commit feb18ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions w3c-ipr.js
Expand Up @@ -41,8 +41,7 @@ module.exports = function iprcheck(w3c, w3cprofileid, name, w3cgroupids, store,
.affiliations()
.fetch(function(err, affiliations) {
if (err) return groupcb(err);

var affids = affiliations.map(a => fromUrlToId(a.href));
var affids = affiliations.map(a => a ? fromUrlToId(a.href) : undefined);
var intersection = orgids.filter(id => affids.includes(id));
if (intersection.length) {
var affiliationId = intersection[0];
Expand Down

0 comments on commit feb18ec

Please sign in to comment.