From f47e4ff0636af02f7972713a994c8c1d9c787e5e Mon Sep 17 00:00:00 2001 From: Paola De Bartolo Date: Fri, 23 Jul 2021 14:21:27 -0300 Subject: [PATCH] fix: fix error when parsing integer ids for on click function Close #42 --- src/main/resources/META-INF/frontend/fc-orgchart.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/frontend/fc-orgchart.js b/src/main/resources/META-INF/frontend/fc-orgchart.js index ce22adb..c90b6a6 100644 --- a/src/main/resources/META-INF/frontend/fc-orgchart.js +++ b/src/main/resources/META-INF/frontend/fc-orgchart.js @@ -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) {