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

Commit

Permalink
Merge pull request #23 from marius-patrascu/main
Browse files Browse the repository at this point in the history
fix exception
  • Loading branch information
sarbull authored Jul 8, 2021
2 parents 142d34f + fc2e7a5 commit afaffbf
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 afaffbf

Please sign in to comment.