Skip to content

Commit

Permalink
Merge pull request #18093 from colemanw/expFix
Browse files Browse the repository at this point in the history
APIv4 Explorer - Fix possible undefined index
  • Loading branch information
seamuslee001 authored Aug 7, 2020
2 parents a64b6d1 + 54d78f6 commit bd28ecf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ang/api4Explorer/Explorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,11 @@
}
// Then lookup implicit links
_.each(path, function(node) {
entity = _.find(links[entity], {alias: node}).entity;
var link = _.find(links[entity], {alias: node});
if (!link) {
return false;
}
entity = link.entity;
});
return entity;
}
Expand Down

0 comments on commit bd28ecf

Please sign in to comment.