Skip to content

Commit

Permalink
APIv4 Explorer - Fix possible undefined index
Browse files Browse the repository at this point in the history
  • Loading branch information
colemanw committed Aug 7, 2020
1 parent 391a1c4 commit 54d78f6
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 54d78f6

Please sign in to comment.