Skip to content

Commit f47e4ff

Browse files
paodbjavier-godoy
authored andcommitted
fix: fix error when parsing integer ids for on click function
Close #42
1 parent 6708b6e commit f47e4ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/META-INF/frontend/fc-orgchart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class FCOrgChart extends PolymerElement {
7777
'nodeTemplate': nodeTemplate,
7878
'createNode': function($node, data) {
7979
$node.on('click', function() {
80-
currOrgChart.$server.onClick(data.id);
80+
currOrgChart.$server.onClick(data.id.toString());
8181
});
8282

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

0 commit comments

Comments
 (0)