Skip to content

Commit

Permalink
fix: fix error when parsing integer ids for on click function
Browse files Browse the repository at this point in the history
Close #42
  • Loading branch information
paodb authored and javier-godoy committed Jul 23, 2021
1 parent 6708b6e commit f47e4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/frontend/fc-orgchart.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class FCOrgChart extends PolymerElement {
'nodeTemplate': nodeTemplate,
'createNode': function($node, data) {
$node.on('click', function() {
currOrgChart.$server.onClick(data.id);
currOrgChart.$server.onClick(data.id.toString());
});

$node.on('mouseover', function(event) {
Expand Down

0 comments on commit f47e4ff

Please sign in to comment.