Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1159 from stevenkampen/bug/1158-undefined-ref-err…
Browse files Browse the repository at this point in the history
…or-in-dependency-info

Prevent undefined ref errors
  • Loading branch information
stevenkampen authored Jun 6, 2017
2 parents f30d63c + c19028d commit fbd283c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/components/dependency-info/dependency-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class DependencyInfo {

this.tree.recurseAll(node => {
this.dependencies.map((dep: any) => {
if (dep.id === dependency.id) {
if (dep && dependency && dep.id === dependency.id) {
dependents.push(node);
}
});
Expand Down

0 comments on commit fbd283c

Please sign in to comment.