Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
Signed-off-by: Marius Patrascu <[email protected]>
  • Loading branch information
marius-patrascu committed Jul 8, 2021
1 parent e4ce3e2 commit fc2e7a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions happi-graph-legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ class HappiGraphLegend extends PolymerElement {
}
this.legendData[group][n.label] = n.label;
n.properties.map(p => {
let propertiesGroup = this.propertiesMap[p.groupName].group
this.legendData[propertiesGroup][p.groupName] = p.groupName;
if (this.propertiesMap[p.groupName]){
let propertiesGroup = this.propertiesMap[p.groupName].group
this.legendData[propertiesGroup][p.groupName] = p.groupName;
}
});
});
}
Expand Down

0 comments on commit fc2e7a5

Please sign in to comment.